MCPcopy Create free account
hub / github.com/Tencent/sluaunreal / funcstat

Function funcstat

Plugins/slua_unreal/External/lua/lparser.cpp:1474–1483  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1472
1473
1474static void funcstat (LexState *ls, int line) {
1475 /* funcstat -> FUNCTION funcname body */
1476 int ismethod;
1477 expdesc v, b;
1478 luaX_next(ls); /* skip FUNCTION */
1479 ismethod = funcname(ls, &v);
1480 body(ls, &b, ismethod, line);
1481 luaK_storevar(ls->fs, &v, &b);
1482 luaK_fixline(ls->fs, line); /* definition "happens" in the first line */
1483}
1484
1485
1486static 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