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