From 3dec0df7951ffda61c8da3d3f9bba563c7a49e98 Mon Sep 17 00:00:00 2001 From: pixel Date: Thu, 22 Jul 2004 23:38:31 +0000 Subject: Adding 'printer' feature --- include/BLua.h | 3 ++- include/Exceptions.h | 10 +++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/BLua.h b/include/BLua.h index bee8836..c1b71c8 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.15 2004-05-02 00:41:39 pixel Exp $ */ +/* $Id: BLua.h,v 1.16 2004-07-22 23:38:31 pixel Exp $ */ #ifndef __BLUA_H__ #define __BLUA_H__ @@ -79,6 +79,7 @@ class Lua : public Base { void showerror(); int getmetatable(int = -1); int setmetatable(int = -2); + int sethook(lua_Hook func, int mask, int count); private: Lua(lua_State *); lua_State * L; diff --git a/include/Exceptions.h b/include/Exceptions.h index 489a761..9f0c3a6 100644 --- a/include/Exceptions.h +++ b/include/Exceptions.h @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: Exceptions.h,v 1.34 2003-12-22 01:57:01 pixel Exp $ */ +/* $Id: Exceptions.h,v 1.35 2004-07-22 23:38:31 pixel Exp $ */ #ifndef __EXCEPTIONS_H__ #define __EXCEPTIONS_H__ @@ -26,6 +26,7 @@ #include #include #include +#include #include #include @@ -136,6 +137,13 @@ class Exit : public GeneralException { int code; }; +class printer_t : public Base { + public: + virtual bool printm(int, const char *, va_list) = 0; +}; + +extern printer_t * printer; + #include #endif -- cgit v1.2.3