Skip to content

Commit bf51e46

Browse files
committed
pythongh-127604: Only define dump_pointer() if CAN_C_BACKTRACE
1 parent 22bc953 commit bf51e46

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Python/traceback.c

+2
Original file line numberDiff line numberDiff line change
@@ -879,12 +879,14 @@ _Py_DumpHexadecimal(int fd, uintptr_t value, Py_ssize_t width)
879879
dump_hexadecimal(fd, value, width, 0);
880880
}
881881

882+
#ifdef CAN_C_BACKTRACE
882883
static void
883884
dump_pointer(int fd, void *ptr)
884885
{
885886
PUTS(fd, "0x");
886887
dump_hexadecimal(fd, (uintptr_t)ptr, sizeof(void*), 1);
887888
}
889+
#endif
888890

889891
static void
890892
dump_char(int fd, char ch)

0 commit comments

Comments
 (0)