MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / lua_setfield

Function lua_setfield

deps/lua/src/lapi.c:657–668  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

655
656
657LUA_API void lua_setfield (lua_State *L, int idx, const char *k) {
658 StkId t;
659 TValue key;
660 lua_lock(L);
661 api_checknelems(L, 1);
662 t = index2adr(L, idx);
663 api_checkvalidindex(L, t);
664 setsvalue(L, &key, luaS_new(L, k));
665 luaV_settable(L, t, &key, L->top - 1);
666 L->top--; /* pop value */
667 lua_unlock(L);
668}
669
670
671LUA_API void lua_rawset (lua_State *L, int idx) {

Callers 15

auxopenFunction · 0.85
base_openFunction · 0.85
luaopen_mathFunction · 0.85
createmetatableFunction · 0.85
luaopen_stringFunction · 0.85
luaL_newmetatableFunction · 0.85
luaI_openlibFunction · 0.85
getsizesFunction · 0.85
json_create_configFunction · 0.85
luaL_setfuncsFunction · 0.85
lua_cjson_newFunction · 0.85
lua_cjson_safe_newFunction · 0.85

Calls 2

index2adrFunction · 0.85
luaV_settableFunction · 0.85

Tested by

no test coverage detected