diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2010-06-10 01:54:14 +0200 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2010-06-10 01:54:14 +0200 |
commit | 560b3134095eae257b96a28aace53c497ca1f84e (patch) | |
tree | a140387dfa629f73e0cf6e16318e57fcf9a05ce7 | |
parent | f859e3df5a769b625f2045546bf1e4e74cdf1cd2 (diff) |
Unfortunately... I've reached the point where I *NEED* to know the lua_State now out of a Lua object... *sigh*
-rw-r--r-- | include/BLua.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/BLua.h b/include/BLua.h index f714981..beff222 100644 --- a/include/BLua.h +++ b/include/BLua.h @@ -179,8 +179,10 @@ class Lua : public Base { error(String("Object not compatible; expecting ") + typeid(r).name() + " but got *" + typeid(*b).name() + " instead."); } - return r; -} + return r; + } + + lua_State * getstate() { return lua_State; } protected: virtual Lua * spawn_from_thread(lua_State *); Lua(lua_State *); |