diff options
author | pixel <pixel> | 2003-12-14 22:04:33 +0000 |
---|---|---|
committer | pixel <pixel> | 2003-12-14 22:04:33 +0000 |
commit | 9296144508ae4a98fb43e4b206aa9d83cdf040e3 (patch) | |
tree | 1f8bb2fefa3698677808da83174233c2b1d47432 /include | |
parent | 187cf873560ca736900db3bb6c8c10d1f75724c4 (diff) |
Fixed GC and some related problems.
Diffstat (limited to 'include')
-rw-r--r-- | include/BLua.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/BLua.h b/include/BLua.h index 911b17c..1f746ec 100644 --- a/include/BLua.h +++ b/include/BLua.h @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: BLua.h,v 1.10 2003-12-14 21:13:32 pixel Exp $ */ +/* $Id: BLua.h,v 1.11 2003-12-14 22:04:33 pixel Exp $ */ #ifndef __BLUA_H__ #define __BLUA_H__ @@ -93,7 +93,7 @@ class LuaObject : public Base { void pushdestruct(Lua *) throw (GeneralException); protected: virtual void pushmembers(Lua *) = 0; - void pushme(Lua *, void *); + void pushme(Lua *, void *, bool = true); static void pushit(Lua *, const String &, lua_CFunction); static void pushmeta(Lua *, const String &, lua_CFunction); bool wantdestruct, pushed; @@ -196,7 +196,7 @@ class LuaHelpers : public Base { if (L->istable(i + 1 + add)) { L->push("__obj"); L->gettable(i + 1 + add); - invalid = !L->islightuserdata(); + invalid = !L->isuserdata(); L->pop(); } else { invalid = !L->isnil(i + 1 + add); |