From: Markus Willhelm Schmid <willhelm.schmid@...>
Date: Thu, 29 Dec 2011 19:05:17 -0800
Try this:
-- Temporary swig hack. Convert from Lua 5.1 to 5.2
local function fixSwig(data)
data=data:gsub("luaL_reg","luaL_Reg")
data=data:gsub("lua_pushvalue%(L,LUA_GLOBALSINDEX%)",'lua_getglobal(L,"_G")')
return data
end