From 318920b1b30f8a63e5e3bbb8dcadc895fbf49739 Mon Sep 17 00:00:00 2001 From: pixel Date: Thu, 1 Dec 2005 14:29:20 +0000 Subject: Added getglobal & dumpvars, as well as fixed a few argument checks. --- include/BLua.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/BLua.h b/include/BLua.h index da09ef4..baaf9db 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.25 2005-10-13 16:00:37 pixel Exp $ */ +/* $Id: BLua.h,v 1.26 2005-12-01 14:29:20 pixel Exp $ */ #ifndef __BLUA_H__ #define __BLUA_H__ @@ -72,6 +72,7 @@ class Lua : public Base { void gettable(int = -2, bool raw = false); void setvar(); int gettop(); + void getglobal(const String &) throw (GeneralException); void push_lua_context(); void error(const String &); int type(int = -1); @@ -93,6 +94,7 @@ class Lua : public Base { Lua * tothread(int = -1); void load(Handle *, bool docall = true) throw (GeneralException); void dump(Handle *, bool strip = true); + void dumpvars(Handle *, const String &, int = -1); Lua * thread(); int yield(int nargs = 0); int resume(int nresults = 0); @@ -113,6 +115,7 @@ class Lua : public Base { lua_State * L; static std::map lualist; bool _protected; + void dumpvars_r(Handle *, int, int = 0) throw (GeneralException); }; class LuaObject : public Base { -- cgit v1.2.3