Skip to content

Commit

Permalink
Apply some standard macro safety fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
scoder committed May 19, 2021
1 parent 8d177f4 commit be3b178
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Cython/Utility/Profile.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,18 @@

#if PY_VERSION_HEX >= 0x030a00b1
#define __Pyx_IsTracing(tstate, check_tracing, check_funcs) \
(unlikely(tstate->cframe->use_tracing) && \
(!(check_tracing) || !tstate->tracing) && \
(!(check_funcs) || tstate->c_profilefunc || (CYTHON_TRACE && tstate->c_tracefunc)))
(unlikely((tstate)->cframe->use_tracing) && \
(!(check_tracing) || !(tstate)->tracing) && \
(!(check_funcs) || (tstate)->c_profilefunc || (CYTHON_TRACE && (tstate)->c_tracefunc)))

#define __Pyx_SetTracing(tstate, enable) \
(tstate)->cframe->use_tracing = (enable)

#else
#define __Pyx_IsTracing(tstate, check_tracing, check_funcs) \
(unlikely(tstate->use_tracing) && \
(!(check_tracing) || !tstate->tracing) && \
(!(check_funcs) || tstate->c_profilefunc || (CYTHON_TRACE && tstate->c_tracefunc)))
(unlikely((tstate)->use_tracing) && \
(!(check_tracing) || !(tstate)->tracing) && \
(!(check_funcs) || (tstate)->c_profilefunc || (CYTHON_TRACE && (tstate)->c_tracefunc)))

#define __Pyx_SetTracing(tstate, enable) \
(tstate)->use_tracing = (enable)
Expand Down

0 comments on commit be3b178

Please sign in to comment.