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

Function xlua_getglobal

WebGLPlugins/xlua.c:318–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316}
317
318LUA_API int xlua_getglobal (lua_State *L, const char *name) {
319 lua_pushcfunction(L, c_lua_getglobal);
320 lua_pushstring(L, name);
321 return lua_pcall(L, 1, 1, 0);
322}
323
324static int c_lua_setglobal(lua_State* L) {
325 lua_setglobal(L, lua_tostring(L, 1));

Callers

nothing calls this directly

Calls 2

lua_pushstringFunction · 0.85
lua_pcallFunction · 0.85

Tested by

no test coverage detected