From: John L. <jr...@us...> - 2008-10-30 04:14:38
|
Update of /cvsroot/wxlua/wxLua/modules/wxbind/src In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv31959/wxLua/modules/wxbind/src Modified Files: wxcore_gdi.cpp wxcore_image.cpp Log Message: Add op_preinc and op_predec for ++/--obj. Make op_inc/dec be for the post inc/dec operator; obj++/-- Index: wxcore_gdi.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wxcore_gdi.cpp,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** wxcore_gdi.cpp 29 Oct 2008 04:44:33 -0000 1.19 --- wxcore_gdi.cpp 30 Oct 2008 04:14:25 -0000 1.20 *************** *** 12607,12611 **** wxArrayVideoModes * self = (wxArrayVideoModes *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayVideoModes); // call op_index ! wxVideoMode* returns = &(*self)[(nIndex)]; // push the result datatype wxluaT_pushuserdatatype(L, returns, wxluatype_wxVideoMode); --- 12607,12611 ---- wxArrayVideoModes * self = (wxArrayVideoModes *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayVideoModes); // call op_index ! wxVideoMode* returns = &((*self)[(nIndex)]); // push the result datatype wxluaT_pushuserdatatype(L, returns, wxluatype_wxVideoMode); Index: wxcore_image.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wxcore_image.cpp,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** wxcore_image.cpp 29 Oct 2008 04:44:33 -0000 1.16 --- wxcore_image.cpp 30 Oct 2008 04:14:25 -0000 1.17 *************** *** 2294,2298 **** wxImageHistogram::iterator * self = (wxImageHistogram::iterator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageHistogram_iterator); // call op_inc ! wxImageHistogram::iterator* returns = &++(*self); // push the result datatype wxluaT_pushuserdatatype(L, returns, wxluatype_wxImageHistogram_iterator); --- 2294,2298 ---- wxImageHistogram::iterator * self = (wxImageHistogram::iterator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageHistogram_iterator); // call op_inc ! wxImageHistogram::iterator* returns = &((*self)++); // push the result datatype wxluaT_pushuserdatatype(L, returns, wxluatype_wxImageHistogram_iterator); |