@@ -428,7 +428,7 @@ static int tmr_create( lua_State *L ) {
428
428
}
429
429
430
430
431
- #if defined(SWTMR_DEBUG )
431
+ #if defined(ENABLE_TIMER_SUSPEND ) && defined( SWTMR_DEBUG )
432
432
static void tmr_printRegistry (lua_State * L ){
433
433
swtmr_print_registry ();
434
434
}
@@ -463,7 +463,7 @@ static const LUA_REG_TYPE tmr_dyn_map[] = {
463
463
{ LNILKEY , LNILVAL }
464
464
};
465
465
466
- #if defined(SWTMR_DEBUG )
466
+ #if defined(ENABLE_TIMER_SUSPEND ) && defined( SWTMR_DEBUG )
467
467
static const LUA_REG_TYPE tmr_dbg_map [] = {
468
468
{ LSTRKEY ( "printRegistry" ), LFUNCVAL ( tmr_printRegistry ) },
469
469
{ LSTRKEY ( "printSuspended" ), LFUNCVAL ( tmr_printSuspended ) },
@@ -492,7 +492,7 @@ static const LUA_REG_TYPE tmr_map[] = {
492
492
{ LSTRKEY ( "state" ), LFUNCVAL ( tmr_state ) },
493
493
{ LSTRKEY ( "interval" ), LFUNCVAL ( tmr_interval ) },
494
494
{ LSTRKEY ( "create" ), LFUNCVAL ( tmr_create ) },
495
- #if defined(SWTMR_DEBUG )
495
+ #if defined(ENABLE_TIMER_SUSPEND ) && defined ( SWTMR_DEBUG )
496
496
{ LSTRKEY ( "debug" ), LROVAL ( tmr_dbg_map ) },
497
497
#endif
498
498
{ LSTRKEY ( "ALARM_SINGLE" ), LNUMVAL ( TIMER_MODE_SINGLE ) },
0 commit comments