mirror of
https://github.com/opentx/opentx.git
synced 2025-07-16 21:05:26 +03:00
[Horus] Compilation failed when LUA not defined
This commit is contained in:
parent
702cd56aae
commit
90cb917c24
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue