diff options
Diffstat (limited to 'include/BLua.h')
-rw-r--r-- | include/BLua.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/BLua.h b/include/BLua.h index eed9c2b..f745f55 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.37 2007-05-30 22:36:31 pixel Exp $ */ +/* $Id: BLua.h,v 1.38 2007-05-31 13:26:52 pixel Exp $ */ #ifndef __BLUA_H__ #define __BLUA_H__ @@ -40,6 +40,11 @@ extern "C" { #undef isnumber +class LuaPrinter : public Base { + public: + virtual void puts(const char *); +}; + //!Basic LUA engine. /*! This will create an LUA context, and provide mechanisms to interact with it. @@ -130,6 +135,9 @@ class Lua : public Base { int getgccount(); Lua * Father(); + + void SetPrinter(LuaPrinter *); + void puts(const char * msg); protected: virtual Lua * spawn_from_thread(lua_State *); @@ -142,6 +150,7 @@ class Lua : public Base { bool _protected, _is_thread; void dumpvars_r(Handle *, int, int = 0) throw (GeneralException); Lua * father; + LuaPrinter * lprinter; friend class LuaStatics; }; |