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

Function xlua_psettable_bypath

WebGLPlugins/xlua.c:302–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300}
301
302LUA_API int xlua_psettable_bypath(lua_State* L, int idx, const char *path) {
303 int top = lua_gettop(L);
304 idx = lua_absindex(L, idx);
305 lua_pushcfunction(L, c_lua_settable_bypath);
306 lua_pushvalue(L, idx);
307 lua_pushstring(L, path);
308 lua_pushvalue(L, top);
309 lua_remove(L, top);
310 return lua_pcall(L, 3, 0, 0);
311}
312
313static int c_lua_getglobal(lua_State* L) {
314 lua_getglobal(L, lua_tostring(L, 1));

Callers

nothing calls this directly

Calls 6

lua_gettopFunction · 0.85
lua_absindexFunction · 0.85
lua_pushvalueFunction · 0.85
lua_pushstringFunction · 0.85
lua_removeFunction · 0.85
lua_pcallFunction · 0.85

Tested by

no test coverage detected