mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
GH-129763: Remove the LLTRACE macro (GH-129764)
This commit is contained in:
parent
f52a3a51eb
commit
fbaa6c8ff0
9 changed files with 25 additions and 49 deletions
|
@ -108,21 +108,21 @@
|
|||
#endif
|
||||
|
||||
/* PRE_DISPATCH_GOTO() does lltrace if enabled. Normally a no-op */
|
||||
#ifdef LLTRACE
|
||||
#ifdef Py_DEBUG
|
||||
#define PRE_DISPATCH_GOTO() if (frame->lltrace >= 5) { \
|
||||
lltrace_instruction(frame, stack_pointer, next_instr, opcode, oparg); }
|
||||
#else
|
||||
#define PRE_DISPATCH_GOTO() ((void)0)
|
||||
#endif
|
||||
|
||||
#if LLTRACE
|
||||
#ifdef Py_DEBUG
|
||||
#define LLTRACE_RESUME_FRAME() \
|
||||
do { \
|
||||
int lltrace = maybe_lltrace_resume_frame(frame, GLOBALS()); \
|
||||
frame->lltrace = lltrace; \
|
||||
if (lltrace < 0) { \
|
||||
JUMP_TO_LABEL(exit_unwind); \
|
||||
} \
|
||||
frame->lltrace = lltrace; \
|
||||
} while (0)
|
||||
#else
|
||||
#define LLTRACE_RESUME_FRAME() ((void)0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue