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

Function globalstatfunc

third-party/lua-5.5.0/src/lparser.c:1962–1969  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1960
1961
1962static void globalstatfunc (LexState *ls, int line) {
1963 /* stat -> GLOBAL globalfunc | GLOBAL globalstat */
1964 luaX_next(ls); /* skip 'global' */
1965 if (testnext(ls, TK_FUNCTION))
1966 globalfunc(ls, line);
1967 else
1968 globalstat(ls);
1969}
1970
1971
1972static int funcname (LexState *ls, expdesc *v) {

Callers 1

statementFunction · 0.85

Calls 4

globalfuncFunction · 0.85
globalstatFunction · 0.85
luaX_nextFunction · 0.70
testnextFunction · 0.70

Tested by

no test coverage detected