MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / funcstat

Function funcstat

Source/Misc/lua/src/lua.c:8788–8797  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8786
8787
8788static void funcstat (LexState *ls, int line) {
8789/* funcstat -> FUNCTION funcname body */
8790int needself;
8791expdesc v, b;
8792luaX_next(ls); /* skip FUNCTION */
8793needself = funcname(ls, &v);
8794body(ls, &b, needself, line);
8795luaK_storevar(ls->fs, &v, &b);
8796luaK_fixline(ls->fs, line); /* definition `happens' in the first line */
8797}
8798
8799
8800static void exprstat (LexState *ls) {

Callers 1

statementFunction · 0.85

Calls 5

luaX_nextFunction · 0.85
funcnameFunction · 0.85
bodyFunction · 0.85
luaK_storevarFunction · 0.85
luaK_fixlineFunction · 0.85

Tested by

no test coverage detected