修复打开DEBUG_LOG时,编译错误 (#1922)

This commit is contained in:
King
2024-05-20 15:56:55 +08:00
committed by Cloud Wu
parent 45b407481d
commit c226ea3f1f

View File

@@ -188,6 +188,7 @@ timing_resume(lua_State *L, int co_index, int n) {
if (timing_enable(L, co_index, &start_time)) {
start_time = get_time();
#ifdef DEBUG_LOG
double ti = diff_time(start_time);
fprintf(stderr, "PROFILE [%p] resume %lf\n", co, ti);
#endif
lua_pushvalue(L, co_index);