1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-23 08:15:17 +03:00

Compilation error

This commit is contained in:
Bertrand Songis 2016-02-19 07:13:36 +01:00
parent 1d9056fe8d
commit 84bf31f908

View file

@ -1086,6 +1086,8 @@ void luaLoadFiles(const char * directory, void (*callback)())
}
}
#endif
void luaInit()
{
TRACE("luaInit");
@ -1106,13 +1108,13 @@ void luaInit()
// protect libs and constants registration
PROTECT_LUA() {
luaRegisterAll();
}
else {
// if we got panic during registration
// we disable Lua for this session
luaDisable();
}
luaRegisterAll();
}
else {
// if we got panic during registration
// we disable Lua for this session
luaDisable();
}
UNPROTECT_LUA();
}
else {
@ -1126,5 +1128,3 @@ void luaInit()
luaLoadFiles(WIDGETS_PATH, luaLoadWidgetCallback);
#endif
}
#endif