From: John L. <jr...@us...> - 2008-01-24 00:18:24
|
Update of /cvsroot/wxlua/wxLua/modules/wxluadebug/src In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv5955/wxLua/modules/wxluadebug/src Modified Files: wxldebug.cpp Log Message: * The wxLua type numbers are now generated when the first wxLuaState is created rather then when the bindings are registered into Lua. This means that each wxLua type stays the same for the life of the program no matter what bindings are installed or in what order. - The copy of the wxLuaBindingList in the wxLuaState was removed since it is no longer needed. Renamed the functions static wxLuaBinding::GetBindXXX() to FindBindXXX() since they no longer needed the extra wxLuaBindingList parameter and they had the same signature as the existing GetBindXXX() functions. - Added wxLuaState::RegisterBinding(wxLuaBinding*) function to register single bindings at a time. You may also reregister bindings, which means that their metatable functions are simple rewritten. Index: wxldebug.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxluadebug/src/wxldebug.cpp,v retrieving revision 1.64 retrieving revision 1.65 diff -C2 -d -r1.64 -r1.65 *** wxldebug.cpp 4 Jan 2008 00:21:08 -0000 1.64 --- wxldebug.cpp 24 Jan 2008 00:18:18 -0000 1.65 *************** *** 367,370 **** --- 367,376 ---- value += wxLuaBindClassString(wxlClass); } + else if (lightuserdata_reg_key == &wxlua_lreg_wxluabindings_key) + { + wxLuaBinding* binding = (wxLuaBinding*)lua_touserdata(L, -2); + name = wxT("wxLuaBinding(")+name+wxT(") -> ")+binding->GetBindingName(); + value += wxT(" = ") + binding->GetLuaNamespace(); + } else if (lightuserdata_reg_key == &wxlua_lreg_evtcallbacks_key) { *************** *** 618,621 **** --- 624,628 ---- (udata == &wxlua_lreg_derivedmethods_key) || (udata == &wxlua_lreg_wxluastate_key) || + (udata == &wxlua_lreg_wxluabindings_key) || (udata == &wxlua_lreg_weakobjects_key) || (udata == &wxlua_lreg_gcobjects_key) || *************** *** 624,628 **** (udata == &wxlua_lreg_callbaseclassfunc_key) || (udata == &wxlua_lreg_wxeventtype_key) || ! (udata == &wxlua_lreg_wxluadebughookdata_key) || (udata == &wxlua_lreg_regtable_key) || --- 631,635 ---- (udata == &wxlua_lreg_callbaseclassfunc_key) || (udata == &wxlua_lreg_wxeventtype_key) || ! (udata == &wxlua_lreg_wxluastatedata_key) || (udata == &wxlua_lreg_regtable_key) || |