Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc292f7f

Browse files
authored
gh-127604: Only define dump_pointer() if CAN_C_BACKTRACE (#132897)
1 parent22bc953 commitc292f7f

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+
#ifdefCAN_C_BACKTRACE
882883
staticvoid
883884
dump_pointer(intfd,void*ptr)
884885
{
885886
PUTS(fd,"0x");
886887
dump_hexadecimal(fd, (uintptr_t)ptr,sizeof(void*),1);
887888
}
889+
#endif
888890

889891
staticvoid
890892
dump_char(intfd,charch)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2026 Movatter.jp