diff options
-rw-r--r-- | include/BLua.h | 3 | ||||
-rw-r--r-- | lib/BLua.cc | 6 |
2 files changed, 7 insertions, 2 deletions
diff --git a/include/BLua.h b/include/BLua.h index aeebbf0..2b9e1b9 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.29 2007-02-07 00:31:10 pixel Exp $ */ +/* $Id: BLua.h,v 1.30 2007-04-02 23:34:30 pixel Exp $ */ #ifndef __BLUA_H__ #define __BLUA_H__ @@ -77,6 +77,7 @@ class Lua : public Base { void getglobal(const String &) throw (GeneralException); void push_lua_context(); void error(const String &); + int status(); int type(int = -1); bool isnil(int = -1); bool isboolean(int = -1); diff --git a/lib/BLua.cc b/lib/BLua.cc index 92ef214..fa35f9f 100644 --- a/lib/BLua.cc +++ b/lib/BLua.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: BLua.cc,v 1.38 2006-11-13 22:00:12 pixel Exp $ */ +/* $Id: BLua.cc,v 1.39 2007-04-02 23:34:30 pixel Exp $ */ #include <stdlib.h> #include "BLua.h" @@ -647,6 +647,10 @@ void Lua::error(const String & msg) { lua_error(L); } +int Lua::status() { + return 0; +} + int Lua::type(int i) { return lua_type(L, i); } |