Update of /cvsroot/wxlua/wxLua/modules/wxluadebug/include
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv15712/wxLua/modules/wxluadebug/include
Modified Files:
wxldebug.h
Log Message:
move check stack to debug lib and remove duplicate code
Index: wxldebug.h
===================================================================
RCS file: /cvsroot/wxlua/wxLua/modules/wxluadebug/include/wxldebug.h,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** wxldebug.h 20 May 2006 19:57:59 -0000 1.16
--- wxldebug.h 30 May 2006 22:56:29 -0000 1.17
***************
*** 135,137 ****
--- 135,158 ----
};
+ // ----------------------------------------------------------------------------
+ // wxLuaCheckStack - dumps the contents of the lua_State
+ // ----------------------------------------------------------------------------
+
+ class WXDLLIMPEXP_WXLUA wxLuaCheckStack
+ {
+ public:
+ wxLuaCheckStack(lua_State* L, const wxString &msg);
+ ~wxLuaCheckStack();
+ void TestStack(const wxString &msg);
+
+ static void DumpGlobals(lua_State* L);
+ static void DumpTable(lua_State* L, const wxString &tableName);
+ static void DumpTable(lua_State* L, int index, const wxString& tablename, wxLuaStringToLongHashMap& dumpList, int indent);
+
+ private:
+ lua_State* m_luaState;
+ wxString m_msg;
+ int m_top;
+ };
+
#endif // WX_LUA_DEBUG_H
|