Update of /cvsroot/wxlua/wxLua/modules/wxluasocket/include
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv8597/wxLua/modules/wxluasocket/include
Modified Files:
wxluasocket_bind.h
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: wxluasocket_bind.h
===================================================================
RCS file: /cvsroot/wxlua/wxLua/modules/wxluasocket/include/wxluasocket_bind.h,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -d -r1.29 -r1.30
*** wxluasocket_bind.h 10 Dec 2007 05:39:10 -0000 1.29
--- wxluasocket_bind.h 20 Dec 2007 02:26:58 -0000 1.30
***************
*** 21,27 ****
// the current version of the bindings.
// See 'bindings/genwxbind.lua' and 'modules/wxlua/include/wxldefs.h'
! #if WXLUA_BINDING_VERSION > 19
# error "The WXLUA_BINDING_VERSION in the bindings is too old, regenerate bindings."
! #endif //WXLUA_BINDING_VERSION > 19
// ---------------------------------------------------------------------------
--- 21,27 ----
// the current version of the bindings.
// See 'bindings/genwxbind.lua' and 'modules/wxlua/include/wxldefs.h'
! #if WXLUA_BINDING_VERSION > 20
# error "The WXLUA_BINDING_VERSION in the bindings is too old, regenerate bindings."
! #endif //WXLUA_BINDING_VERSION > 20
// ---------------------------------------------------------------------------
|