implicit conversion operator to make using the framework easier.

This commit is contained in:
ThePhD 2016-04-11 18:07:25 -04:00
parent 30415845df
commit f10988363c

View File

@ -166,6 +166,10 @@ public:
return reg; return reg;
} }
operator lua_State* () const {
return lua_state();
}
void set_panic(lua_CFunction panic){ void set_panic(lua_CFunction panic){
lua_atpanic(L, panic); lua_atpanic(L, panic);
} }