From: John L. <jr...@us...> - 2007-11-28 00:20:53
|
Update of /cvsroot/wxlua/wxLua/modules/wxlua/include In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv15269/wxLua/modules/wxlua/include Modified Files: wxldefs.h Log Message: Clarify that the "index" parameter really means stack_idx Don't crash if someone calls a wxLua userdata with something other than a string in our __index function Don't use lua_rawset(L, old_top), but -3 to make sure that everything is right and we're not hiding problems Index: wxldefs.h =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxlua/include/wxldefs.h,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -d -r1.35 -r1.36 *** wxldefs.h 17 Nov 2007 00:16:13 -0000 1.35 --- wxldefs.h 28 Nov 2007 00:20:49 -0000 1.36 *************** *** 118,121 **** --- 118,126 ---- #define INIT_LUA_DEBUG { 0, 0, 0, 0, 0, 0, 0, 0, 0, {0}, 0 } + // Create a wxString from the lua_Debug struct for debugging + #define lua_Debug_to_wxString(ld) \ + wxString::Format(wxT("%p event=%d name='%s' namewhat='%s' what='%s' source='%s' currentline=%d nups=%d linedefined=%d lastlinedefined=%d short_src='%s' i_ci=%d"), \ + &ld, ld.event, lua2wx(ld.name).c_str(), lua2wx(ld.namewhat).c_str(), lua2wx(ld.what).c_str(), lua2wx(ld.source).c_str(), ld.currentline, ld.nups, ld.linedefined, ld.lastlinedefined, lua2wx(ld.short_src).c_str(), ld.i_ci) + // ---------------------------------------------------------------------------- // Convert from wxWidgets wxT('') to wxT(""), a string. Copied from wx/filefn.h |