MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / localfunc

Function localfunc

third-party/lua-5.3.5/src/lparser.c:1431–1439  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

statementFunction · 0.70

Calls 5

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

Tested by

no test coverage detected