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

Function globalstat

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

Source from the content-addressed store, hash-verified

1929
1930
1931static void globalstat (LexState *ls) {
1932 /* globalstat -> (GLOBAL) attrib '*'
1933 globalstat -> (GLOBAL) attrib NAME attrib {',' NAME attrib} */
1934 FuncState *fs = ls->fs;
1935 /* get prefixed attribute (if any); default is regular global variable */
1936 lu_byte defkind = getglobalattribute(ls, GDKREG);
1937 if (!testnext(ls, '*'))
1938 globalnames(ls, defkind);
1939 else {
1940 /* use NULL as name to represent '*' entries */
1941 new_varkind(ls, NULL, defkind);
1942 fs->nactvar++; /* activate declaration */
1943 }
1944}
1945
1946
1947static void globalfunc (LexState *ls, int line) {

Callers 1

globalstatfuncFunction · 0.85

Calls 4

getglobalattributeFunction · 0.85
globalnamesFunction · 0.85
new_varkindFunction · 0.85
testnextFunction · 0.70

Tested by

no test coverage detected