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