Fix LUA=N compilation failure
This commit is contained in:
@@ -119,6 +119,7 @@ class FormGridLayoutEx : public FormGridLayout
|
||||
uint8_t _lineHeight = PAGE_LINE_HEIGHT;
|
||||
};
|
||||
|
||||
#if defined(LUA)
|
||||
void buildLuaUi(std::vector<LuaScript> luaScripts, FormWindow *window, FormGridLayoutEx &grid)
|
||||
{
|
||||
for (auto luaScript : luaScripts) {
|
||||
@@ -136,7 +137,7 @@ void buildLuaUi(std::vector<LuaScript> luaScripts, FormWindow *window, FormGridL
|
||||
|
||||
luaExec(luaScript.path.c_str());
|
||||
StandaloneLuaWindow::instance()->attach(window);
|
||||
|
||||
|
||||
return 0;
|
||||
},
|
||||
OPAQUE);
|
||||
@@ -156,7 +157,7 @@ void buildLuaUi(std::vector<LuaScript> luaScripts, FormWindow *window, FormGridL
|
||||
grid.nextLine();
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
void RadioToolsPage::rebuild(FormWindow * window)
|
||||
{
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#if defined(LUA)
|
||||
#include "libopenui.h"
|
||||
#include "lua/lua_api.h"
|
||||
|
||||
@@ -77,3 +78,4 @@ protected:
|
||||
LuaTouchData touch;
|
||||
#endif
|
||||
};
|
||||
#endif
|
||||
Reference in New Issue
Block a user