MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / new_localvar

Function new_localvar

src/Chain/libraries/glua/lparser.cpp:199–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197
198
199static void new_localvar(LexState *ls, TString *name) {
200 FuncState *fs = ls->fs;
201 Dyndata *dyd = ls->dyd;
202 int reg = registerlocalvar(ls, name);
203 checklimit(fs, dyd->actvar.n + 1 - fs->firstlocal,
204 MAXVARS, "local variables");
205 luaM_growvector(ls->L, dyd->actvar.arr, dyd->actvar.n + 1,
206 dyd->actvar.size, Vardesc, MAX_INT, "local variables");
207 dyd->actvar.arr[dyd->actvar.n++].idx = lua_cast(short, reg);
208}
209
210
211static void new_localvarliteral_(LexState *ls, const char *name, size_t sz) {

Callers 6

new_localvarliteral_Function · 0.85
parlistFunction · 0.85
fornumFunction · 0.85
forlistFunction · 0.85
localfuncFunction · 0.85
localstatFunction · 0.85

Calls 2

registerlocalvarFunction · 0.85
checklimitFunction · 0.85

Tested by

no test coverage detected