Update of /cvsroot/wxlua/wxLua/bindings
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv8015/wxLua/bindings
Modified Files:
genwxbind.lua
Log Message:
add binding tag for LuaFunction
add %overload up to file.i, note static funcs don't work now
add SortItems function for wxListCtrl, untested
tabs -> spaces
Index: genwxbind.lua
===================================================================
RCS file: /cvsroot/wxlua/wxLua/bindings/genwxbind.lua,v
retrieving revision 1.63
retrieving revision 1.64
diff -C2 -d -r1.63 -r1.64
*** genwxbind.lua 17 May 2006 22:47:09 -0000 1.63
--- genwxbind.lua 18 May 2006 05:47:39 -0000 1.64
***************
*** 215,218 ****
--- 215,219 ----
dataTypes["wxArrayInt_FromLuaTable"] = AllocDataType("wxArrayInt_FromLuaTable", "wxtypedef", true)
dataTypes["LuaTable"] = AllocDataType("LuaTable", "wxtypedef", true)
+ dataTypes["LuaFunction"] = AllocDataType("LuaFunction", "wxtypedef", true)
-- data type attributes that can precede a data type
***************
*** 3134,3137 ****
--- 3135,3144 ----
argItem = "YOU MUST OVERLOAD THIS FUNCTION "
declare = "YOU MUST OVERLOAD THIS FUNCTION "
+ elseif argType == "LuaFunction" then
+ -- THIS MUST BE AN OVERLOAD AND HANDLED THERE, we just set overload_argList
+ -- the code genererated here is nonsense
+ overload_argList = overload_argList.."&s_wxluaarg_LuaFunction, "
+ argItem = "YOU MUST OVERLOAD THIS FUNCTION "
+ declare = "YOU MUST OVERLOAD THIS FUNCTION "
elseif (indirectionCount == 1) and (argPtr == "[]") then
argTypeWithAttrib = argTypeWithAttrib.." *"
|