MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / lua_getglobal

Function lua_getglobal

3rd/lua-5.4.3/src/lapi.c:660–665  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

658
659
660LUA_API int lua_getglobal (lua_State *L, const char *name) {
661 const TValue *G;
662 lua_lock(L);
663 G = getGtable(L);
664 return auxgetstr(L, G, name);
665}
666
667
668LUA_API int lua_gettable (lua_State *L, int idx) {

Callers 4

dolibraryFunction · 0.85
pushargsFunction · 0.85
get_promptFunction · 0.85
l_printFunction · 0.85

Calls 1

auxgetstrFunction · 0.85

Tested by

no test coverage detected