MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / init_var

Function init_var

3rd/lua-5.4.3/src/lparser.c:266–271  ·  view source on GitHub ↗

** Create an expression representing variable 'vidx' */

Source from the content-addressed store, hash-verified

264** Create an expression representing variable 'vidx'
265*/
266static void init_var (FuncState *fs, expdesc *e, int vidx) {
267 e->f = e->t = NO_JUMP;
268 e->k = VLOCAL;
269 e->u.var.vidx = vidx;
270 e->u.var.ridx = getlocalvardesc(fs, vidx)->vd.ridx;
271}
272
273
274/*

Callers 1

searchvarFunction · 0.85

Calls 1

getlocalvardescFunction · 0.85

Tested by

no test coverage detected