Fix LUA=N compilation failure

This commit is contained in:
Peter Feerick
2021-12-24 13:18:08 +10:00
parent b6ad6fbc50
commit 0814cbca88
2 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -119,6 +119,7 @@ class FormGridLayoutEx : public FormGridLayout
uint8_t _lineHeight = PAGE_LINE_HEIGHT; uint8_t _lineHeight = PAGE_LINE_HEIGHT;
}; };
#if defined(LUA)
void buildLuaUi(std::vector<LuaScript> luaScripts, FormWindow *window, FormGridLayoutEx &grid) void buildLuaUi(std::vector<LuaScript> luaScripts, FormWindow *window, FormGridLayoutEx &grid)
{ {
for (auto luaScript : luaScripts) { for (auto luaScript : luaScripts) {
@@ -156,7 +157,7 @@ void buildLuaUi(std::vector<LuaScript> luaScripts, FormWindow *window, FormGridL
grid.nextLine(); grid.nextLine();
} }
} }
#endif
void RadioToolsPage::rebuild(FormWindow * window) void RadioToolsPage::rebuild(FormWindow * window)
{ {
+2
View File
@@ -21,6 +21,7 @@
#pragma once #pragma once
#if defined(LUA)
#include "libopenui.h" #include "libopenui.h"
#include "lua/lua_api.h" #include "lua/lua_api.h"
@@ -77,3 +78,4 @@ protected:
LuaTouchData touch; LuaTouchData touch;
#endif #endif
}; };
#endif