MCPcopy Create free account
hub / github.com/Tencent/xLua / lua_getglobal

Function lua_getglobal

WebGLPlugins/xlua.c:72–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70#if LUA_VERSION_NUM == 501
71#undef lua_getglobal
72LUA_API int lua_getglobal (lua_State *L, const char *name) {
73 lua_getfield(L, LUA_GLOBALSINDEX, name);
74 return 0;
75}
76
77#undef lua_setglobal
78LUA_API void lua_setglobal (lua_State *L, const char *name) {

Callers 11

dolibraryFunction · 0.70
get_promptFunction · 0.70
l_printFunction · 0.70
pushargsFunction · 0.70
luaB_printFunction · 0.70
xlua_getloadersFunction · 0.70
c_lua_getglobalFunction · 0.70
print_topFunction · 0.70
print_strFunction · 0.70
print_valueFunction · 0.70
errorfuncFunction · 0.70

Calls 1

lua_getfieldFunction · 0.85

Tested by

no test coverage detected