diff --git a/sol/state.hpp b/sol/state.hpp index 9e39b240..197288a9 100644 --- a/sol/state.hpp +++ b/sol/state.hpp @@ -55,7 +55,7 @@ private: table reg; table global; public: - state(): + state(lua_CFunction panic = detail::atpanic): L(luaL_newstate(), lua_close), reg(L.get(), LUA_REGISTRYINDEX), #if SOL_LUA_VERSION < 503 @@ -65,7 +65,7 @@ public: // Global tables are stored in the environment/registry table global(reg.get