Add lua_state function to retrieve the lua_State pointer

This commit is contained in:
Rapptz 2014-01-26 00:25:46 -05:00
parent 2782fed879
commit 44bbdcc4c3

View File

@ -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