mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
implicit conversion operator to make using the framework easier.
This commit is contained in:
parent
30415845df
commit
f10988363c
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user