summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorpixel <pixel>2003-11-06 11:56:07 +0000
committerpixel <pixel>2003-11-06 11:56:07 +0000
commitbb6ade743cea6ba6f4f8746a12d52fd1886f4db9 (patch)
tree5933870bd6be14674dab87bd8386631f16322f81 /include
parentf70ad229bc765f3e6fd218f1e54bd0828fc9e1b4 (diff)
Adding LUA
Diffstat (limited to 'include')
-rw-r--r--include/BLua.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/include/BLua.h b/include/BLua.h
new file mode 100644
index 0000000..476ac0a
--- /dev/null
+++ b/include/BLua.h
@@ -0,0 +1,29 @@
+#ifndef __BLUA_H__
+#define __BLUA_H__
+
+#include <lua.h>
+#include <map>
+#include <Exceptions.h>
+#include <Handle.h>
+
+class Lua : public Base {
+ public:
+ Lua();
+ Lua(const Lua &) throw (GeneralException);
+ virtual ~Lua();
+ void push();
+ void push(double);
+ void push(const String &);
+ void push(bool);
+ void push(void *);
+ void push(lua_CFunction, int = 0);
+ void load(Handle *) throw (GeneralException) ;
+ Lua * thread();
+ static Lua * find(lua_State *);
+ private:
+ Lua(lua_State *);
+ lua_State * L;
+ static std::map<lua_State *, Lua *> lualist;
+};
+
+#endif