From: John L. <jr...@us...> - 2007-02-07 01:45:12
|
Update of /cvsroot/wxlua/wxLua/modules/wxbind/src In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv17634/wxLua/modules/wxbind/src Modified Files: windows.cpp Log Message: fix previous commit that skipped overloaded binding functions without #if conditions Index: windows.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/windows.cpp,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -d -r1.33 -r1.34 *** windows.cpp 6 Feb 2007 04:17:45 -0000 1.33 --- windows.cpp 7 Feb 2007 01:45:02 -0000 1.34 *************** *** 3334,3337 **** --- 3334,3350 ---- #endif // (wxLUA_USE_wxPointSizeRect) + // Overloaded functions for wxLua_wxWindow_FindWindow + static int LUACALL wxLua_wxWindow_FindWindow(lua_State *L) + { + // function overload table + static WXLUAMETHOD overloaded_methods[] = + { + { LuaMethod, "FindWindow", wxLua_wxWindow_FindWindow1, 1, 1, s_wxluatagArray_wxLua_wxWindow_FindWindow1 }, + { LuaMethod, "FindWindowName", wxLua_wxWindow_FindWindowName, 1, 1, s_wxluatagArray_wxLua_wxWindow_FindWindowName }, + }; + static int overloaded_methodCount = sizeof(overloaded_methods)/sizeof(overloaded_methods[0]); + wxLuaState wxlState(L); + return wxlState.CallOverloadedFunction(overloaded_methods, overloaded_methodCount); + } #if (wxLUA_USE_wxPointSizeRect) |