diff options
author | Pixel <pixel@nobis-crew.org> | 2009-06-01 08:22:06 -0700 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2009-06-01 08:22:06 -0700 |
commit | adcabb33d8f804d087ea7d743d80afdc6d28b83c (patch) | |
tree | 74770050497265e69db9cc375991e24212386561 /include | |
parent | 1e0908de082c3996707c27ecf1c8f32900b0bb60 (diff) |
Mingw32 doesn't like LuaObject::getme without LuaObject defined before.
Diffstat (limited to 'include')
-rw-r--r-- | include/BLua.h | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/include/BLua.h b/include/BLua.h index fe0b33b..df918bd 100644 --- a/include/BLua.h +++ b/include/BLua.h @@ -43,6 +43,22 @@ class LuaPrinter : public Base { virtual void puts(const char *); }; +class Lua; + +class LuaObject : public Base { + public: + LuaObject() : wantdestruct(false), pushed(false) {} + virtual void push(Lua *) throw (GeneralException); + static void * getme(Lua *, int = 1); + void pushdestruct(Lua *) throw (GeneralException); + protected: + virtual void pushmembers(Lua *) = 0; + void pushme(Lua *, void * = 0, const String & = "", bool = true); + static void pushit(Lua *, const String &, lua_CFunction); + static void pushmeta(Lua *, const String &, lua_CFunction); + bool wantdestruct, pushed; +}; + //!Basic LUA engine. /*! This will create an LUA context, and provide mechanisms to interact with it. @@ -173,20 +189,6 @@ class Lua : public Base { friend class LuaStatics; }; -class LuaObject : public Base { - public: - LuaObject() : wantdestruct(false), pushed(false) {} - virtual void push(Lua *) throw (GeneralException); - static void * getme(Lua *, int = 1); - void pushdestruct(Lua *) throw (GeneralException); - protected: - virtual void pushmembers(Lua *) = 0; - void pushme(Lua *, void * = 0, const String & = "", bool = true); - static void pushit(Lua *, const String &, lua_CFunction); - static void pushmeta(Lua *, const String &, lua_CFunction); - bool wantdestruct, pushed; -}; - class LuaException : public GeneralException { public: LuaException(String); |