mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 04:33:05 +00:00
修复打开DEBUG_LOG时,编译错误 (#1922)
This commit is contained in:
@@ -188,6 +188,7 @@ timing_resume(lua_State *L, int co_index, int n) {
|
|||||||
if (timing_enable(L, co_index, &start_time)) {
|
if (timing_enable(L, co_index, &start_time)) {
|
||||||
start_time = get_time();
|
start_time = get_time();
|
||||||
#ifdef DEBUG_LOG
|
#ifdef DEBUG_LOG
|
||||||
|
double ti = diff_time(start_time);
|
||||||
fprintf(stderr, "PROFILE [%p] resume %lf\n", co, ti);
|
fprintf(stderr, "PROFILE [%p] resume %lf\n", co, ti);
|
||||||
#endif
|
#endif
|
||||||
lua_pushvalue(L, co_index);
|
lua_pushvalue(L, co_index);
|
||||||
|
|||||||
Reference in New Issue
Block a user