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

Function xlua_psettable

WebGLPlugins/xlua.c:263–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261}
262
263LUA_API int xlua_psettable(lua_State* L, int idx) {
264 int top = lua_gettop(L);
265 idx = lua_absindex(L, idx);
266 lua_pushcfunction(L, c_lua_settable);
267 lua_pushvalue(L, idx);
268 lua_pushvalue(L, top - 1);
269 lua_pushvalue(L, top);
270 lua_remove(L, top);
271 lua_remove(L, top - 1);
272 return lua_pcall(L, 3, 0, 0);
273}
274
275static int c_lua_settable_bypath(lua_State* L) {
276 size_t len = 0;

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected