From 84bf31f9082c030995750f480eaff1cb47797336 Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Fri, 19 Feb 2016 07:13:36 +0100 Subject: [PATCH] Compilation error --- radio/src/lua/interface.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/radio/src/lua/interface.cpp b/radio/src/lua/interface.cpp index dafa3989e..c8045f727 100644 --- a/radio/src/lua/interface.cpp +++ b/radio/src/lua/interface.cpp @@ -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