From bb6ade743cea6ba6f4f8746a12d52fd1886f4db9 Mon Sep 17 00:00:00 2001 From: pixel Date: Thu, 6 Nov 2003 11:56:07 +0000 Subject: Adding LUA --- include/BLua.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 include/BLua.h (limited to 'include') 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 +#include +#include +#include + +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 lualist; +}; + +#endif -- cgit v1.2.3