mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Add lua_state function to retrieve the lua_State pointer
This commit is contained in:
parent
2782fed879
commit
44bbdcc4c3
|
@ -183,6 +183,10 @@ public:
|
|||
proxy<const table, T> operator[](T&& key) const {
|
||||
return global[std::forward<T>(key)];
|
||||
}
|
||||
|
||||
lua_State* lua_state() const {
|
||||
return L.get();
|
||||
}
|
||||
};
|
||||
} // sol
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user