Update of /cvsroot/wxlua/wxLua/bindings/wxwidgets
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv32730/wxLua/bindings/wxwidgets
Modified Files:
wxbase_rules.lua wxcore_rules.lua
Log Message:
Implement a better fix for the gc of duplicate pointers
Don't track wxLuaFunctions, should be much faster now
Make wxLuaState::RemoveTrackedMemory also clear the rest of the "tracking" info
Index: wxcore_rules.lua
===================================================================
RCS file: /cvsroot/wxlua/wxLua/bindings/wxwidgets/wxcore_rules.lua,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** wxcore_rules.lua 17 Jul 2007 03:30:20 -0000 1.2
--- wxcore_rules.lua 19 Jul 2007 03:09:46 -0000 1.3
***************
*** 270,286 ****
-- hook_cpp_binding_classname. You can load any other custom bindings here.
-- Typically this is not necessary and you can rem this out.
! wxLuaBinding_PostRegister =
! [[
! wxLuaState wxLS(wxlState);
! wxCHECK_RET(wxLS.Ok(), wxT("Invalid wxLuaState"));
! lua_State* L = wxLS.GetLuaState();
!
! if (registerTypes)
! g_wxluatag_NULL = wxLS.tnewtag();
!
! lua_pushlstring(L, "NULL", 4);
! wxLS.tpushusertag(NULL, g_wxluatag_NULL);
! lua_rawset(L, luaTable);
! ]]
--=============================================================================
--- 270,274 ----
-- hook_cpp_binding_classname. You can load any other custom bindings here.
-- Typically this is not necessary and you can rem this out.
! -- wxLuaBinding_PostRegister = nothing to do here
--=============================================================================
Index: wxbase_rules.lua
===================================================================
RCS file: /cvsroot/wxlua/wxLua/bindings/wxwidgets/wxbase_rules.lua,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** wxbase_rules.lua 17 Jul 2007 03:30:20 -0000 1.2
--- wxbase_rules.lua 19 Jul 2007 03:09:46 -0000 1.3
***************
*** 142,146 ****
lua_pushlstring(L, "NULL", 4);
! wxLS.tpushusertag(NULL, g_wxluatag_NULL);
lua_rawset(L, luaTable);
]]
--- 142,146 ----
lua_pushlstring(L, "NULL", 4);
! wxLS.tpushusertag(NULL, g_wxluatag_NULL, true);
lua_rawset(L, luaTable);
]]
|