From: John L. <jr...@us...> - 2011-11-16 04:40:50
|
Update of /cvsroot/wxlua/wxLua/modules/wxbind/src In directory vz-cvs-4.sog:/tmp/cvs-serv3909/modules/wxbind/src Modified Files: wxcore_print.cpp Log Message: wxPrintSetupDialog and wxPrintDialog are derived from wxObject so we can/should delete() them. Index: wxcore_print.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wxcore_print.cpp,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** wxcore_print.cpp 1 Oct 2009 04:21:01 -0000 1.17 --- wxcore_print.cpp 16 Nov 2011 04:40:48 -0000 1.18 *************** *** 2133,2136 **** --- 2133,2139 ---- } + static wxLuaArgType s_wxluatypeArray_wxLua_wxPageSetupDialog_delete[] = { &wxluatype_wxPageSetupDialog, NULL }; + static wxLuaBindCFunc s_wxluafunc_wxLua_wxPageSetupDialog_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPageSetupDialog_delete }}; + static wxLuaArgType s_wxluatypeArray_wxLua_wxPageSetupDialog_constructor[] = { &wxluatype_wxWindow, &wxluatype_wxPageSetupDialogData, NULL }; static int LUACALL wxLua_wxPageSetupDialog_constructor(lua_State *L); *************** *** 2147,2150 **** --- 2150,2155 ---- // call constructor wxPageSetupDialog* returns = new wxPageSetupDialog(parent, data); + // add to tracked memory list + wxluaO_addgcobject(L, returns, wxluatype_wxPageSetupDialog); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxPageSetupDialog); *************** *** 2166,2169 **** --- 2171,2175 ---- { "GetPageSetupDialogData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPageSetupDialog_GetPageSetupDialogData, 1, NULL }, { "ShowModal", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPageSetupDialog_ShowModal, 1, NULL }, + { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPageSetupDialog_delete, 1, NULL }, { "wxPageSetupDialog", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPageSetupDialog_constructor, 1, NULL }, *************** *** 2251,2254 **** --- 2257,2263 ---- } + static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintDialog_delete[] = { &wxluatype_wxPrintDialog, NULL }; + static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintDialog_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPrintDialog_delete }}; + static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintDialog_constructor[] = { &wxluatype_wxWindow, &wxluatype_wxPrintDialogData, NULL }; static int LUACALL wxLua_wxPrintDialog_constructor(lua_State *L); *************** *** 2265,2268 **** --- 2274,2279 ---- // call constructor wxPrintDialog* returns = new wxPrintDialog(parent, data); + // add to tracked memory list + wxluaO_addgcobject(L, returns, wxluatype_wxPrintDialog); // push the constructed class pointer wxluaT_pushuserdatatype(L, returns, wxluatype_wxPrintDialog); *************** *** 2289,2292 **** --- 2300,2304 ---- { "GetPrintDialogData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintDialog_GetPrintDialogData, 1, NULL }, { "ShowModal", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintDialog_ShowModal, 1, NULL }, + { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPrintDialog_delete, 1, NULL }, { "wxPrintDialog", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPrintDialog_constructor, 1, NULL }, |