AP_Scripting: enable load() function in lua scripts

can be used to parse user supplied lua
This commit is contained in:
Andrew Tridgell 2022-11-26 11:35:49 +11:00
parent 31b9299ad3
commit 65746de112

View File

@ -461,7 +461,7 @@ static const luaL_Reg base_funcs[] = {
// {"getmetatable", luaB_getmetatable},
{"ipairs", luaB_ipairs},
// {"loadfile", luaB_loadfile},
// {"load", luaB_load},
{"load", luaB_load},
#if defined(LUA_COMPAT_LOADSTRING)
{"loadstring", luaB_load},
#endif