MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / const2val

Function const2val

lib/lua/src/lcode.c:74–77  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 2

luaK_exp2constFunction · 0.85
luaK_dischargevarsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected