MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / funcstat

Function funcstat

extlibs/lua/src/lparser.c:1803–1812  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1801
1802
1803static void funcstat (LexState *ls, int line) {
1804 /* funcstat -> FUNCTION funcname body */
1805 int ismethod;
1806 expdesc v, b;
1807 luaX_next(ls); /* skip FUNCTION */
1808 ismethod = funcname(ls, &v);
1809 body(ls, &b, ismethod, line);
1810 luaK_storevar(ls->fs, &v, &b);
1811 luaK_fixline(ls->fs, line); /* definition "happens" in the first line */
1812}
1813
1814
1815static 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