From 2b0bb545996c6cad30bc6f0168acb0012eb2cefc Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 4 Oct 2023 02:08:12 +0200 Subject: [PATCH] Update LuaState API (4/4) Now that all calls use explicit parameters, we can remove the default params, and make ::sandbox() private --- libs/lua/lua/luastate.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/lua/lua/luastate.h b/libs/lua/lua/luastate.h index b1f7402612..999348ee1e 100644 --- a/libs/lua/lua/luastate.h +++ b/libs/lua/lua/luastate.h @@ -27,7 +27,7 @@ class LIBLUA_API LuaState { public: - LuaState (bool sandbox = true, bool rt_safe = false); + LuaState (bool sandbox, bool rt_safe); LuaState(lua_State *ls); ~LuaState(); @@ -36,7 +36,6 @@ public: void collect_garbage () const; void collect_garbage_step (int debt = 0); void tweak_rt_gc (); - void sandbox (bool rt_safe); sigc::signal Print; @@ -47,6 +46,7 @@ protected: private: void init (); + void sandbox (bool rt_safe); static int _print (lua_State *L); void print (std::string text);