diff options
Diffstat (limited to 'include/BLua.h')
-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); |