summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorpixel <pixel>2004-12-27 18:50:55 +0000
committerpixel <pixel>2004-12-27 18:50:55 +0000
commit73b826216433355c36cac2b679dbbe755df53284 (patch)
treeb5de52950aea93ca721d3a626a1524627077e156 /include
parent6222b7e63a231f2de088095629bc5ee695fa39b0 (diff)
Added a bit more protected and intelligent lua code there.
Diffstat (limited to 'include')
-rw-r--r--include/BLua.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/BLua.h b/include/BLua.h
index d5e4f2b..0a7b7a6 100644
--- a/include/BLua.h
+++ b/include/BLua.h
@@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* $Id: BLua.h,v 1.22 2004-12-17 11:46:41 pixel Exp $ */
+/* $Id: BLua.h,v 1.23 2004-12-27 18:50:55 pixel Exp $ */
#ifndef __BLUA_H__
#define __BLUA_H__
@@ -55,7 +55,7 @@ class Lua : public Base {
void open_dir();
void declarefunc(const String &, lua_CFunction, int = LUA_GLOBALSINDEX);
void call(const String &, int = LUA_GLOBALSINDEX, int = 0, int = 0);
- void call(int = 0, int = 0);
+ void call(int = 0, int = 0) throw (GeneralException);
void push();
void push(lua_Number);
void push(const String &);
@@ -70,6 +70,7 @@ class Lua : public Base {
void gettable(int = -2, bool raw = false);
void setvar();
int gettop();
+ void push_lua_context();
void error(const String &);
int type(int = -1);
bool isnil(int = -1);
@@ -103,10 +104,13 @@ class Lua : public Base {
virtual void lock() {}
virtual void unlock() {}
+
+ bool is_protected();
private:
Lua(lua_State *);
lua_State * L;
static std::map<lua_State *, Lua *> lualist;
+ bool _protected;
};
class LuaObject : public Base {