From: John L. <jr...@us...> - 2007-12-20 02:27:28
|
Update of /cvsroot/wxlua/wxLua/docs In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv8597/wxLua/docs Modified Files: changelog.txt Log Message: - Removed wxluabind_removetableforcall(L) used in the bindings to determine if the function was called from the tables used for class constructors. It makes more sense to call an intermediatary function to remove the table before calling the real function. - Removed the wxLuaFunction class since we no longer need it. It was a userdata with a __call metatable to call the real function we want. We now push the actual function or an overload function helper with the wxLuaBindMethod struct as an upvalue to give better error messages. The new way should be faster since it doesn't generate as much garbage. - Added wxlua_argerror(L, stack_idx, type_str) to give a far more informative message from the bindings when the wrong type is an arg to a function. - Renamed WXLUAARG_XXX to WXLUA_TXXX to match LUA_TXXX. * Do not create a separate overload function in the bindings since we can just as easily check for multiple functions using the wxLuaBindMethod and call the generic overload function or just the single function. Index: changelog.txt =================================================================== RCS file: /cvsroot/wxlua/wxLua/docs/changelog.txt,v retrieving revision 1.53 retrieving revision 1.54 diff -C2 -d -r1.53 -r1.54 *** changelog.txt 15 Dec 2007 16:56:40 -0000 1.53 --- changelog.txt 20 Dec 2007 02:26:55 -0000 1.54 *************** *** 55,59 **** have their metatables cleared for safety. ! Functions renamed since they didn't do the same thing or behave the same. wxluaO_istrackedobject -> wxluaO_isgcobject wxluaO_addtrackedobject -> wxluaO_addgcobject --- 55,59 ---- have their metatables cleared for safety. ! Functions renamed since they don't do the same thing or behave the same. wxluaO_istrackedobject -> wxluaO_isgcobject wxluaO_addtrackedobject -> wxluaO_addgcobject *************** *** 61,65 **** - Created a central luauserdata:delete() function for the bindings to reduce ! code. wxLua_wxluabind_delete(L) * Changed signature of the function wxLuaState::SetLuaDebugHook() so that the inputs to lua_sethook() are together and in the same order. --- 61,65 ---- - Created a central luauserdata:delete() function for the bindings to reduce ! code. wxLua_userdata_delete(L) * Changed signature of the function wxLuaState::SetLuaDebugHook() so that the inputs to lua_sethook() are together and in the same order. *************** *** 67,70 **** --- 67,88 ---- it is a callback for the wxEvents using wxEvtHandlers. + - Removed wxluabind_removetableforcall(L) used in the bindings to determine + if the function was called from the tables used for class constructors. + It makes more sense to call an intermediatary function to remove + the table before calling the real function. + - Removed the wxLuaFunction class since we no longer need it. It was a + userdata with a __call metatable to call the real function we want. + We now push the actual function or an overload function helper with the + wxLuaBindMethod struct as an upvalue to give better error messages. + The new way should be faster since it doesn't generate as much garbage. + - Added wxlua_argerror(L, stack_idx, type_str) to give a far more + informative message from the bindings when the wrong type is an arg to + a function. + - Renamed WXLUAARG_XXX to WXLUA_TXXX to match LUA_TXXX. + + * Do not create a separate overload function in the bindings since we can + just as easily check for multiple functions using the wxLuaBindMethod + and call the generic overload function or just the single function. + version 2.8.4.2 -------------------------------------------------------------------- |