diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/BLua.h | 4 | ||||
-rw-r--r-- | include/LuaHandle.h | 9 |
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
|