From 560b3134095eae257b96a28aace53c497ca1f84e Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Thu, 10 Jun 2010 01:54:14 +0200 Subject: Unfortunately... I've reached the point where I *NEED* to know the lua_State now out of a Lua object... *sigh* --- include/BLua.h | 6 ++++-- 1 file 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 *); -- cgit v1.2.3