Skip to content

Commit c292f7f

Browse files
authored
gh-127604: Only define dump_pointer() if CAN_C_BACKTRACE (#132897)
1 parent 22bc953 commit c292f7f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Python/traceback.c

Lines changed: 2 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy