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

Function const2val

third-party/lua-5.4.6/src/lcode.c:75–78  ·  view source on GitHub ↗

** Get the constant value from a constant expression */

Source from the content-addressed store, hash-verified

73** Get the constant value from a constant expression
74*/
75static TValue *const2val (FuncState *fs, const expdesc *e) {
76 lua_assert(e->k == VCONST);
77 return &fs->ls->dyd->actvar.arr[e->u.info].k;
78}
79
80
81/*

Callers 2

luaK_exp2constFunction · 0.70
luaK_dischargevarsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected