From: John L. <jr...@us...> - 2007-02-07 20:57:53
|
Update of /cvsroot/wxlua/wxLua/bindings In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv31770/wxLua/bindings Modified Files: genwxbind.lua Log Message: allow %member variables to be enums and call GetEnumerationType and not GetNumberType on them Index: genwxbind.lua =================================================================== RCS file: /cvsroot/wxlua/wxLua/bindings/genwxbind.lua,v retrieving revision 1.96 retrieving revision 1.97 diff -C2 -d -r1.96 -r1.97 *** genwxbind.lua 7 Feb 2007 18:39:07 -0000 1.96 --- genwxbind.lua 7 Feb 2007 20:57:49 -0000 1.97 *************** *** 2818,2821 **** --- 2818,2824 ---- CommentBindingTable(codeList, " // get the boolean value\n") table.insert(codeList, " bool val = wxlState.GetBooleanType(2);\n") + elseif IsDataTypeEnum(memberType) then + CommentBindingTable(codeList, " // get the number value\n") + table.insert(codeList, " "..memberType.." val = ("..memberType..")wxlState.GetEnumerationType(2);\n") else CommentBindingTable(codeList, " // get the number value\n") |