lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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