diff options
author | Victor Stinner <vstinner@python.org> | 2025-04-25 07:28:34 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-25 07:28:34 (GMT) |
commit | c292f7f56311b305c673415651c919a7633d36cc (patch) | |
tree | 77917ab7e318acd5780aa2c935a11cd6b68aff70 /Python/traceback.c | |
parent | 22bc953aa9be3039629dd1315f856d2522619412 (diff) | |
download | cpython-c292f7f56311b305c673415651c919a7633d36cc.zip cpython-c292f7f56311b305c673415651c919a7633d36cc.tar.gz cpython-c292f7f56311b305c673415651c919a7633d36cc.tar.bz2 |
gh-127604: Only define dump_pointer() if CAN_C_BACKTRACE (#132897)
Diffstat (limited to 'Python/traceback.c')
-rw-r--r-- | Python/traceback.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/traceback.c b/Python/traceback.c index 0a9f571..ff8d29f 100644 --- a/Python/traceback.c +++ b/Python/traceback.c @@ -879,12 +879,14 @@ _Py_DumpHexadecimal(int fd, uintptr_t value, Py_ssize_t width) dump_hexadecimal(fd, value, width, 0); } +#ifdef CAN_C_BACKTRACE static void dump_pointer(int fd, void *ptr) { PUTS(fd, "0x"); dump_hexadecimal(fd, (uintptr_t)ptr, sizeof(void*), 1); } +#endif static void dump_char(int fd, char ch) |