diff --git a/sol/state_view.hpp b/sol/state_view.hpp index c42f3c1f..a34b1608 100644 --- a/sol/state_view.hpp +++ b/sol/state_view.hpp @@ -166,6 +166,10 @@ public: return reg; } + operator lua_State* () const { + return lua_state(); + } + void set_panic(lua_CFunction panic){ lua_atpanic(L, panic); }