From: John L. <jr...@us...> - 2006-12-04 05:54:43
|
Update of /cvsroot/wxlua/wxLua/bindings In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv23310/wxLua/bindings Modified Files: genwxbind.lua Log Message: update docs remove unnecessary extern declarations in the cpp binding files Index: genwxbind.lua =================================================================== RCS file: /cvsroot/wxlua/wxLua/bindings/genwxbind.lua,v retrieving revision 1.84 retrieving revision 1.85 diff -C2 -d -r1.84 -r1.85 *** genwxbind.lua 1 Dec 2006 06:25:46 -0000 1.84 --- genwxbind.lua 4 Dec 2006 05:54:40 -0000 1.85 *************** *** 603,607 **** if conditions[condition] then result = conditions[condition] ! elseif string.find(condition, "%wxchkver", 1, 1) then -- check for conditions like %wxchkver_1_2_3 = wxCHECK_VERSION(1,2,3) local ver = { 0, 0, 0 } --- 603,607 ---- if conditions[condition] then result = conditions[condition] ! elseif string.find(condition, "%wxchkver_", 1, 1) then -- check for conditions like %wxchkver_1_2_3 = wxCHECK_VERSION(1,2,3) local ver = { 0, 0, 0 } *************** *** 612,615 **** --- 612,621 ---- result = string.format("wxCHECK_VERSION(%d,%d,%d)", ver[1], ver[2], ver[3]) conditions[condition] = result -- cache result + elseif string.find(condition, "%wxcompat_", 1, 1) then + -- check for conditions like %wxcompat_1_2 = WXWIN_COMPATIBILITY_1_2 + local p1, p2 = string.find(condition, "%wxcompat_", 1, 1) + result = "WXWIN_COMPATIBILITY"..string.sub(condition, p2) + result = "(defined("..result..") && "..result..")" + conditions[condition] = result -- cache result elseif string.find(condition, "wxLUA_USE_", 1, 1) then print("Warning unknown wxLUA_USE_XXX tag, maybe a missing condition? '"..condition.."'") *************** *** 4300,4308 **** table.insert(fileData, "// bind "..hook_cpp_binding_classname.." to a single wxLuaState\n") - table.insert(fileData, "extern bool "..hook_cpp_binding_classname.."_bind(const wxLuaState& wxlState);\n") - table.insert(fileData, "// initialize "..hook_cpp_binding_classname.." for all wxLuaStates\n") - table.insert(fileData, "extern bool "..hook_cpp_binding_classname.."_init();\n\n") - - table.insert(fileData, "// bind "..hook_cpp_binding_classname.." to a single wxLuaState\n") table.insert(fileData, "bool "..hook_cpp_binding_classname.."_bind(const wxLuaState& wxlState_)\n") table.insert(fileData, "{\n") --- 4306,4309 ---- |