mirror of
https://github.com/elua/elua.git
synced 2025-01-25 01:02:54 +08:00
Fix compilation error when optram=0
This commit fixes src/modules/tmr.c:203: warning: implicit declaration of function 'LNUMVAL' src/modules/tmr.c:203: error: initializer element is not constant src/modules/tmr.c:203: error: (near initialization for 'tmr_map[11].func') due to missing #if LUA_OPTIMIZE_MEMORY > 0
This commit is contained in:
parent
bbd7c635b9
commit
2f560fb16b
@ -200,6 +200,8 @@ const LUA_REG_TYPE tmr_map[] =
|
||||
#endif
|
||||
#if VTMR_NUM_TIMERS > 0
|
||||
{ LSTRKEY( "__index" ), LFUNCVAL( tmr_mt_index ) },
|
||||
#endif
|
||||
#if LUA_OPTIMIZE_MEMORY > 0
|
||||
{ LSTRKEY( "SYS_TIMER" ), LNUMVAL( PLATFORM_TIMER_SYS_ID ) },
|
||||
#endif
|
||||
#if LUA_OPTIMIZE_MEMORY > 0 && defined( BUILD_LUA_INT_HANDLERS )
|
||||
|
Loading…
x
Reference in New Issue
Block a user