From 9eb5ae6e946651bdbe532b66700bb1ed6944584f Mon Sep 17 00:00:00 2001 From: jacqueline Date: Wed, 22 Nov 2023 15:46:46 +1100 Subject: Use protected mode for lua callbacks wherever possible --- src/lua/include/lua_thread.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lua/include/lua_thread.hpp') diff --git a/src/lua/include/lua_thread.hpp b/src/lua/include/lua_thread.hpp index 939d0cda..4c5198aa 100644 --- a/src/lua/include/lua_thread.hpp +++ b/src/lua/include/lua_thread.hpp @@ -19,6 +19,8 @@ namespace lua { class Allocator; +auto CallProtected(lua_State*, int nargs, int nresults) -> int; + class LuaThread { public: static auto Start(system_fsm::ServiceLocator&, lv_obj_t* lvgl_root = nullptr) -- cgit v1.2.3