From 9864fb13cc4c0c9ffd726a0f90c101e6c6cb6b35 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Sun, 19 May 2024 00:23:14 +0800 Subject: [PATCH] fix msvc asm bug --- src/ceval.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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;