File: lua.lua

package info (click to toggle)
luasocket 2.0-alpha-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 452 kB
  • ctags: 437
  • sloc: ansic: 2,015; makefile: 107
file content (10 lines) | stat: -rw-r--r-- 354 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
local _loadlib = loadlib

LUA_LIBNAME = LUA_LIBNAME or os.getenv("LUA_LIBNAME") or "?" 
LUA_FUNCNAME = LUA_FUNCNAME or os.getenv("LUA_FUNCNAME") or "?" 

function loadlib(...)
    if arg[1] then arg[1] = string.gsub(LUA_LIBNAME, "?", arg[1]) end
    if arg[2] then arg[2] = string.gsub(LUA_FUNCNAME, "?", arg[2]) end
    return _loadlib(unpack(arg))
end