diff --git a/src/ceval.cpp b/src/ceval.cpp index 3d3c3386..4b60d010 100644 --- a/src/ceval.cpp +++ b/src/ceval.cpp @@ -103,8 +103,10 @@ PyVar VM::__run_top_frame(){ if(_profiler) _profiler->_step(callstack.size(), frame); \ if(!_next_breakpoint.empty()) { _next_breakpoint._step(this); } #else -#define CEVAL_STEP_CALLBACK() \ - if(_ceval_on_step) _ceval_on_step(this, frame, byte); +#define CEVAL_STEP_CALLBACK() \ + if(_ceval_on_step){ \ + if(_ceval_on_step) _ceval_on_step(this, frame, byte); \ + } #endif #define DISPATCH() goto __NEXT_STEP;