MCPcopy Create free account
hub / github.com/F-Stack/f-stack / localfunc

Function localfunc

freebsd/contrib/openzfs/module/lua/lparser.c:1428–1436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1426
1427
1428static void localfunc (LexState *ls) {
1429 expdesc b;
1430 FuncState *fs = ls->fs;
1431 new_localvar(ls, str_checkname(ls)); /* new local variable */
1432 adjustlocalvars(ls, 1); /* enter its scope */
1433 body(ls, &b, 0, ls->linenumber); /* function created in next register */
1434 /* debug information will only see the variable after this point! */
1435 getlocvar(fs, b.u.info)->startpc = fs->pc;
1436}
1437
1438
1439static void localstat (LexState *ls) {

Callers 1

statementFunction · 0.70

Calls 5

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

Tested by

no test coverage detected