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

Function localfunc

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

Source from the content-addressed store, hash-verified

1490
1491
1492static void localfunc(LexState *ls) {
1493 expdesc b;
1494 FuncState *fs = ls->fs;
1495 new_localvar(ls, str_checkname(ls)); /* new local variable */
1496 adjustlocalvars(ls, 1); /* enter its scope */
1497 body(ls, &b, 0, ls->linenumber); /* function created in next register */
1498 /* debug information will only see the variable after this point! */
1499 getlocvar(fs, b.u.info)->startpc = fs->pc;
1500}
1501
1502
1503static void localstat(LexState *ls) {

Callers 1

statementFunction · 0.85

Calls 5

new_localvarFunction · 0.85
str_checknameFunction · 0.85
adjustlocalvarsFunction · 0.85
bodyFunction · 0.85
getlocvarFunction · 0.85

Tested by

no test coverage detected