[Horus] Compilation failed when LUA not defined
This commit is contained in:
@@ -37,7 +37,7 @@ extern bool luaLcdAllowed;
|
|||||||
|
|
||||||
void luaInit();
|
void luaInit();
|
||||||
void luaInitThemesAndWidgets();
|
void luaInitThemesAndWidgets();
|
||||||
|
#define LUA_INIT_THEMES_AND_WIDGETS() luaInitThemesAndWidgets()
|
||||||
|
|
||||||
#define lua_registernumber(L, n, i) (lua_pushnumber(L, (i)), lua_setglobal(L, (n)))
|
#define lua_registernumber(L, n, i) (lua_pushnumber(L, (i)), lua_setglobal(L, (n)))
|
||||||
#define lua_registerint(L, n, i) (lua_pushinteger(L, (i)), lua_setglobal(L, (n)))
|
#define lua_registerint(L, n, i) (lua_pushinteger(L, (i)), lua_setglobal(L, (n)))
|
||||||
@@ -147,8 +147,8 @@ void luaSetInstructionsLimit(lua_State* L, int count);
|
|||||||
void luaCompileAndSave(lua_State * L, const char *bytecodeName);
|
void luaCompileAndSave(lua_State * L, const char *bytecodeName);
|
||||||
#else // defined(LUA)
|
#else // defined(LUA)
|
||||||
#define luaInit()
|
#define luaInit()
|
||||||
|
#define LUA_INIT_THEMES_AND_WIDGETS()
|
||||||
#define LUA_LOAD_MODEL_SCRIPTS()
|
#define LUA_LOAD_MODEL_SCRIPTS()
|
||||||
#define luaLoadThemes()
|
|
||||||
#endif // defined(LUA)
|
#endif // defined(LUA)
|
||||||
|
|
||||||
#endif // _LUA_API_H_
|
#endif // _LUA_API_H_
|
||||||
|
|||||||
@@ -2437,7 +2437,7 @@ void opentxInit(OPENTX_INIT_ARGS)
|
|||||||
|
|
||||||
#if defined(PCBHORUS)
|
#if defined(PCBHORUS)
|
||||||
topbar = new Topbar(&g_model.topbarData);
|
topbar = new Topbar(&g_model.topbarData);
|
||||||
luaInitThemesAndWidgets();
|
LUA_INIT_THEMES_AND_WIDGETS();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(RAMBACKUP)
|
#if defined(RAMBACKUP)
|
||||||
|
|||||||
Reference in New Issue
Block a user