1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-14 03:49:52 +03:00

[Horus] Compilation failed when LUA not defined

This commit is contained in:
Bertrand Songis 2016-11-30 07:55:32 +01:00
parent 702cd56aae
commit 90cb917c24
2 changed files with 3 additions and 3 deletions

View file

@ -37,7 +37,7 @@ extern bool luaLcdAllowed;
void luaInit();
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_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);
#else // defined(LUA)
#define luaInit()
#define LUA_INIT_THEMES_AND_WIDGETS()
#define LUA_LOAD_MODEL_SCRIPTS()
#define luaLoadThemes()
#endif // defined(LUA)
#endif // _LUA_API_H_