From: John L. <jr...@us...> - 2007-02-22 05:41:25
|
Update of /cvsroot/wxlua/wxLua/bindings In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv28638/wxLua/bindings Modified Files: genwxbind.lua Log Message: use wxLuaState::GetwxStringType instead of lua2wx use wxLuaState::lua_PushString instead of wx2lua fix name == nil when adding notebook page to the wxLua editor Index: genwxbind.lua =================================================================== RCS file: /cvsroot/wxlua/wxLua/bindings/genwxbind.lua,v retrieving revision 1.99 retrieving revision 1.100 diff -C2 -d -r1.99 -r1.100 *** genwxbind.lua 22 Feb 2007 00:01:34 -0000 1.99 --- genwxbind.lua 22 Feb 2007 05:40:51 -0000 1.100 *************** *** 2755,2759 **** if memberType == "wxString" then CommentBindingTable(codeList, " // push the result string\n") ! table.insert(codeList, " lua_pushstring(L, wx2lua(self->"..member.Name..") );\n") elseif not numeric and (not memberPtr or (memberPtr == "&")) then CommentBindingTable(codeList, " // push the result datatype\n") --- 2755,2759 ---- if memberType == "wxString" then CommentBindingTable(codeList, " // push the result string\n") ! table.insert(codeList, " wxlState.lua_PushString(self->"..member.Name..");\n") elseif not numeric and (not memberPtr or (memberPtr == "&")) then CommentBindingTable(codeList, " // push the result datatype\n") *************** *** 3567,3571 **** if memberType == "wxString" then CommentBindingTable(codeList, " // push the result string\n") ! table.insert(codeList, " lua_pushstring(L, wx2lua("..returnPtr.."returns) );\n") elseif not numeric then CommentBindingTable(codeList, " // push the result datatype\n") --- 3567,3571 ---- if memberType == "wxString" then CommentBindingTable(codeList, " // push the result string\n") ! table.insert(codeList, " wxlState.lua_PushString("..returnPtr.."returns);\n") elseif not numeric then CommentBindingTable(codeList, " // push the result datatype\n") |