GE Lua Documentation

Press F to search!

getfenv

Definition


-- @/=[C]:-1
function getfenv(...)

Callers

@/lua/common/devUtils.lua
  -- sandbox creation
  local fEnv = getfenv(1) -- we reuse the environment and override only some things ...
  -- sandboxed functions
@/lua/common/libs/lua-luaepnf/epnf.lua
  if e == nil then
    e = V == " 5.1" and getfenv( func ) or _G
  end