AP_Scripting: allow AP_SCRIPTING_ENABLED to come from hwdef files

This commit is contained in:
Peter Barker
2023-06-09 16:10:52 +10:00
committed by Peter Barker
parent 3aaeb0f29c
commit d519ab604e
9 changed files with 59 additions and 1 deletions
+5
View File
@@ -2,6 +2,9 @@
// lua/src/lua.c. It overall modified the functions to the minimum amount
// required, with the exception of fixing whitespace/indentation on if's
#include "AP_Scripting_config.h"
#if AP_SCRIPTING_ENABLED
#include "lua_scripts.h"
#include <AP_Scripting/lua_generated_bindings.h>
@@ -257,3 +260,5 @@ void lua_scripts::doREPL(lua_State *L) {
repl_cleanup();
}
#endif // AP_SCRIPTING_ENABLED