mirror of
https://github.com/opentx/opentx.git
synced 2025-07-24 08:45:24 +03:00
Compilation error
This commit is contained in:
parent
1d9056fe8d
commit
84bf31f908
1 changed files with 9 additions and 9 deletions
|
@ -1086,6 +1086,8 @@ void luaLoadFiles(const char * directory, void (*callback)())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
void luaInit()
|
void luaInit()
|
||||||
{
|
{
|
||||||
TRACE("luaInit");
|
TRACE("luaInit");
|
||||||
|
@ -1106,13 +1108,13 @@ void luaInit()
|
||||||
|
|
||||||
// protect libs and constants registration
|
// protect libs and constants registration
|
||||||
PROTECT_LUA() {
|
PROTECT_LUA() {
|
||||||
luaRegisterAll();
|
luaRegisterAll();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// if we got panic during registration
|
// if we got panic during registration
|
||||||
// we disable Lua for this session
|
// we disable Lua for this session
|
||||||
luaDisable();
|
luaDisable();
|
||||||
}
|
}
|
||||||
UNPROTECT_LUA();
|
UNPROTECT_LUA();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -1126,5 +1128,3 @@ void luaInit()
|
||||||
luaLoadFiles(WIDGETS_PATH, luaLoadWidgetCallback);
|
luaLoadFiles(WIDGETS_PATH, luaLoadWidgetCallback);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue