summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorpixel <pixel>2003-11-29 00:48:21 +0000
committerpixel <pixel>2003-11-29 00:48:21 +0000
commitb60005df986a901ed2b91a96529a7f7d6937ce52 (patch)
treebe4aee78e498f2e3f143cfc5e2b1dc5a62fa999e /include
parent85cc12b6fae31e8f2d7014c5061c915c036d9369 (diff)
Fixed __gc (humf)
Added LuaBuffer
Diffstat (limited to 'include')
-rw-r--r--include/BLua.h4
-rw-r--r--include/LuaHandle.h9
2 files changed, 11 insertions, 2 deletions
diff --git a/include/BLua.h b/include/BLua.h
index 19c65c4..d9b809e 100644
--- a/include/BLua.h
+++ b/include/BLua.h
@@ -28,8 +28,8 @@ class Lua : public Base {
void push(lua_CFunction, int = 0);
void pop(int = 1);
void newtable();
- void settable(int = -3);
- void gettable(int = -2);
+ void settable(int = -3, bool = false);
+ void gettable(int = -2, bool = false);
int gettop();
void error(const String &);
int type(int = -1);
diff --git a/include/LuaHandle.h b/include/LuaHandle.h
index 629b57f..f8fc1ab 100644
--- a/include/LuaHandle.h
+++ b/include/LuaHandle.h
@@ -4,6 +4,7 @@
#include <Exceptions.h>
#include <Input.h>
#include <Output.h>
+#include <Buffer.h>
#include <BLua.h>
class LuaHandle : public LuaObject {
@@ -30,4 +31,12 @@ class LuaOutput : public LuaHandle {
virtual void pushmembers(Lua *);
};
+class LuaBuffer : public LuaHandle {
+ public:
+ static void pushconstruct(Lua *);
+ LuaBuffer(Buffer *);
+ protected:
+ virtual void pushmembers(Lua *);
+};
+
#endif