AP_Scripting: add require with sandbox inheritence

This commit is contained in:
bugobliterator authored and Andrew Tridgell committed 2023-04-28 12:36:08 +10:00
1 parent 350f718745
commit 306b14d8dc
8 files changed
+114 -51

No files matched your search

+6
View File
@@ -572,3 +572,9 @@ int lua_get_PWMSource(lua_State *L) {
return 1;
}
int lua_get_current_ref()
{
auto *scripting = AP::scripting();
return scripting->get_current_ref();
}