summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorpixel <pixel>2004-07-22 23:38:31 +0000
committerpixel <pixel>2004-07-22 23:38:31 +0000
commit3dec0df7951ffda61c8da3d3f9bba563c7a49e98 (patch)
tree9b31175f78dd54d1eabf960d5fff83c2fec381ae /include
parent7009ed165a9d093ae0a68331803eda32ecbb2b9e (diff)
Adding 'printer' feature
Diffstat (limited to 'include')
-rw-r--r--include/BLua.h3
-rw-r--r--include/Exceptions.h10
2 files changed, 11 insertions, 2 deletions
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 <stddef.h>
#include <string.h>
#include <stdlib.h>
+#include <stdarg.h>
#include <vector>
#include <generic.h>
@@ -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 <BString.h>
#endif