Update of /cvsroot/wxlua/wxLua/bindings
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24553/wxLua/bindings
Modified Files:
genwxbind.lua
Log Message:
-1 to wxID_ANY
match #if #endif with comment of #if statement
Move CreateStandAloneBitmaps from internal.cpp to wxlua.cpp, the app
allow %rename for enums in genwxbind.lua, remove #defines in internal.h (a hack)
Index: genwxbind.lua
===================================================================
RCS file: /cvsroot/wxlua/wxLua/bindings/genwxbind.lua,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** genwxbind.lua 24 Jan 2006 05:23:31 -0000 1.19
--- genwxbind.lua 3 Feb 2006 04:53:57 -0000 1.20
***************
*** 2608,2618 ****
local pos = string.find(dataType, "::")
local namespace = ""
if pos then
! namespace = string.sub(dataType, 0, pos - 1) .. "::"
end
local enumBinding =
{
! Map = " { \""..member.Name.."\", false, "..namespace..member.Name..", 0 },\n",
Condition = fullcondition
}
--- 2608,2622 ----
local pos = string.find(dataType, "::")
local namespace = ""
+ local luaname = member.AltName or member.Name -- for %rename
if pos then
! namespace = string.sub(dataType, 0, pos - 1)
! -- luaname = namespace.."_"..luaname -- FIXME unrem this to put enums as wxFile::read -> wxFile_read
! namespace = namespace.."::"
end
+
local enumBinding =
{
! Map = " { \""..luaname.."\", false, "..namespace..member.Name..", 0 },\n",
Condition = fullcondition
}
|