MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / lua_setfield

Function lua_setfield

lua/lapi.c:664–675  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

662
663
664LUA_API void lua_setfield (lua_State *L, int idx, const char *k) {
665 StkId t;
666 TValue key;
667 lua_lock(L);
668 api_checknelems(L, 1);
669 t = index2adr(L, idx);
670 api_checkvalidindex(L, t);
671 setsvalue(L, &key, luaS_new(L, k));
672 luaV_settable(L, t, &key, L->top - 1);
673 L->top--; /* pop value */
674 lua_unlock(L);
675}
676
677
678LUA_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
init_arithmeticFunction · 0.85
init_cmpFunction · 0.85
init_commonFunction · 0.85
l_datetime_to_tableFunction · 0.85
luaL_newmetatableFunction · 0.85
luaI_openlibFunction · 0.85
getsizesFunction · 0.85

Calls 2

index2adrFunction · 0.85
luaV_settableFunction · 0.85

Tested by

no test coverage detected