Update of /cvsroot/wxlua/wxLua/modules/wxbindstc/src
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv10172/wxLua/modules/wxbindstc/src
Modified Files:
stc.cpp
Log Message:
Add new flag for wxLuaBindMethod WXLUAMETHOD_DELETE to know if this is our special delete function.
Do not treat the delete function as if it was overloaded from base class
Fix MSVC warnings about comparing ints and enums in wxlbind.cpp
Add "class" to get class from wxLuaBinding_XXX in lua, also check for null for class_name
Add bitlib from Reuben Thomas to wxlstate.cpp, maybe not the best place, but it's small
Add code for bindings.wx.lua to check base classes and also functions overloading base class functions
Add more unittest.wx.lua code to verify bindings
Index: stc.cpp
===================================================================
RCS file: /cvsroot/wxlua/wxLua/modules/wxbindstc/src/stc.cpp,v
retrieving revision 1.38
retrieving revision 1.39
diff -C2 -d -r1.38 -r1.39
*** stc.cpp 12 Jun 2007 00:08:41 -0000 1.38
--- stc.cpp 13 Jun 2007 00:09:03 -0000 1.39
***************
*** 8561,8565 ****
static wxLuaArgTag s_wxluatagArray_wxLua_wxStyledTextEvent_Delete[] = { &s_wxluatag_wxStyledTextEvent, NULL };
static int LUACALL wxLua_wxStyledTextEvent_Delete(lua_State *L);
! static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_Delete[1] = {{ wxLua_wxStyledTextEvent_Delete, WXLUAMETHOD_METHOD, 1, 1, s_wxluatagArray_wxLua_wxStyledTextEvent_Delete }};
static int LUACALL wxLua_wxStyledTextEvent_Delete(lua_State *L)
{
--- 8561,8565 ----
static wxLuaArgTag s_wxluatagArray_wxLua_wxStyledTextEvent_Delete[] = { &s_wxluatag_wxStyledTextEvent, NULL };
static int LUACALL wxLua_wxStyledTextEvent_Delete(lua_State *L);
! static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_Delete[1] = {{ wxLua_wxStyledTextEvent_Delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatagArray_wxLua_wxStyledTextEvent_Delete }};
static int LUACALL wxLua_wxStyledTextEvent_Delete(lua_State *L)
{
***************
*** 9366,9370 ****
// Map Lua Class Methods to C Binding Functions
wxLuaBindMethod wxStyledTextEvent_methods[] = {
! { "Delete", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_Delete, 1, NULL },
{ "GetAlt", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_GetAlt, 1, NULL },
{ "GetControl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_GetControl, 1, NULL },
--- 9366,9370 ----
// Map Lua Class Methods to C Binding Functions
wxLuaBindMethod wxStyledTextEvent_methods[] = {
! { "Delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxStyledTextEvent_Delete, 1, NULL },
{ "GetAlt", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_GetAlt, 1, NULL },
{ "GetControl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_GetControl, 1, NULL },
|