mirror of
https://github.com/elua/elua.git
synced 2025-01-25 01:02:54 +08:00
Allow "disp" modules to compile when optram=0
The AUXLIB_DISP macro is only used when optram=0. This change lets the avr32 and str9 platform-specific modules compile also under optram=0.
This commit is contained in:
parent
bb1b783037
commit
c027a59293
@ -57,6 +57,11 @@ LUALIB_API int ( luaopen_elua )( lua_State *L );
|
||||
#define AUXLIB_I2C "i2c"
|
||||
LUALIB_API int ( luaopen_i2c )( lua_State *L );
|
||||
|
||||
// Platform-specific modules
|
||||
#define AUXLIB_DISP "disp"
|
||||
LUALIB_API int ( luaopen_disp )( lua_State *L );
|
||||
|
||||
|
||||
// Helper macros
|
||||
#define MOD_CHECK_ID( mod, id )\
|
||||
if( !platform_ ## mod ## _exists( id ) )\
|
||||
|
Loading…
x
Reference in New Issue
Block a user