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

Function getglobalattribute

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

Source from the content-addressed store, hash-verified

1860
1861
1862static lu_byte getglobalattribute (LexState *ls, lu_byte df) {
1863 lu_byte kind = getvarattribute(ls, df);
1864 switch (kind) {
1865 case RDKTOCLOSE:
1866 luaK_semerror(ls, "global variables cannot be to-be-closed");
1867 return kind; /* to avoid warnings */
1868 case RDKCONST:
1869 return GDKCONST; /* adjust kind for global variable */
1870 default:
1871 return kind;
1872 }
1873}
1874
1875
1876static void checkglobal (LexState *ls, TString *varname, int line) {

Callers 2

globalnamesFunction · 0.85
globalstatFunction · 0.85

Calls 2

getvarattributeFunction · 0.85
luaK_semerrorFunction · 0.70

Tested by

no test coverage detected