MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / const2val

Function const2val

extlibs/lua/src/lcode.c:73–76  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 2

luaK_exp2constFunction · 0.85
luaK_dischargevarsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected