From: John L. <jr...@us...> - 2008-01-24 00:18:23
|
Update of /cvsroot/wxlua/wxLua/samples In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv5955/wxLua/samples Modified Files: controls.wx.lua 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: controls.wx.lua =================================================================== RCS file: /cvsroot/wxlua/wxLua/samples/controls.wx.lua,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** controls.wx.lua 23 Jan 2008 06:43:40 -0000 1.17 --- controls.wx.lua 24 Jan 2008 00:18:19 -0000 1.18 *************** *** 284,288 **** elseif typ == wxlua.WXLUA_TTABLE then s = s.."("..table.concat(v, ",")..")" ! elseif typ <= wxlua.WXLUA_TCFUNCTION then -- the rest of generic lua types s = s..tostring(v) elseif typ_name == "wxPoint" then --- 284,288 ---- elseif typ == wxlua.WXLUA_TTABLE then s = s.."("..table.concat(v, ",")..")" ! elseif typ <= wxlua.WXLUA_T_MAX then -- the rest of generic lua types s = s..tostring(v) elseif typ_name == "wxPoint" then |