MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / lua_upvalueindex

Function lua_upvalueindex

emmy_debugger/src/api/lua_api_loader.cpp:319–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317}
318
319int lua_upvalueindex(int i)
320{
321 switch (luaVersion) {
322 case LuaVersion::LUA_55: {
323 return LUA_REGISTRYINDEX - i;
324 }
325 case LuaVersion::LUA_52:
326 case LuaVersion::LUA_53:
327 case LuaVersion::LUA_54: {
328 return -1001000 - i;
329 }
330 default: {
331 return -10002 - i;
332 }
333 }
334
335 return -10002 - i;
336}
337
338int lua_absindex(lua_State* L, int idx)
339{

Callers 15

EnvIndexFunctionFunction · 0.85
math_randomFunction · 0.85
math_randomseedFunction · 0.85
gmatch_auxFunction · 0.85
luaB_auxwrapFunction · 0.85
findfileFunction · 0.85
findloaderFunction · 0.85
io_readlineFunction · 0.85
math_randomFunction · 0.85
math_randomseedFunction · 0.85
gmatch_auxFunction · 0.85
luaB_auxwrapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected