Explorar el Código

Update ceval.cpp

blueloveTH hace 1 año
padre
commit
f0f6a6a4fb
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  1. 4 4
      src/ceval.cpp

+ 4 - 4
src/ceval.cpp

@@ -98,9 +98,9 @@ PyVar VM::__run_top_frame(){
 
 
 #if PK_ENABLE_PROFILER
-#define CEVAL_STEP_CALLBACK() \
-    if(_ceval_on_step) _ceval_on_step(this, frame, byte);   \
-    if(_profiler) _profiler->_step(callstack.size(), frame);        \
+#define CEVAL_STEP_CALLBACK()                                           \
+    if(_ceval_on_step) _ceval_on_step(this, frame, byte);               \
+    if(_profiler) _profiler->_step(callstack.size(), frame);            \
     if(!_next_breakpoint.empty()) { _next_breakpoint._step(this); }
 #else
 #define CEVAL_STEP_CALLBACK() \
@@ -116,7 +116,7 @@ __NEXT_FRAME:
 
 __NEXT_STEP:;
     byte = co_codes[frame->next_bytecode()];
-    // CEVAL_STEP_CALLBACK();
+    CEVAL_STEP_CALLBACK()
 
 #if PK_DEBUG_CEVAL_STEP
     __log_s_data();