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

Function checkglobal

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

Source from the content-addressed store, hash-verified

1874
1875
1876static void checkglobal (LexState *ls, TString *varname, int line) {
1877 FuncState *fs = ls->fs;
1878 expdesc var;
1879 int k;
1880 buildglobal(ls, varname, &var); /* create global variable in 'var' */
1881 k = var.u.ind.keystr; /* index of global name in 'k' */
1882 luaK_codecheckglobal(fs, &var, k, line);
1883}
1884
1885
1886/*

Callers 2

initglobalFunction · 0.85
globalfuncFunction · 0.85

Calls 2

buildglobalFunction · 0.85
luaK_codecheckglobalFunction · 0.85

Tested by

no test coverage detected