MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / lua_setfield

Function lua_setfield

other_src/lua/src/lapi.cpp:689–700  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

687
688
689LUA_API void lua_setfield (lua_State *L, int idx, const char *k) {
690 StkId t;
691 TValue key;
692 lua_lock(L);
693 api_checknelems(L, 1);
694 t = index2adr(L, idx);
695 api_checkvalidindex(L, t);
696 setsvalue(L, &key, luaS_new(L, k));
697 luaV_settable(L, t, &key, L->top - 1);
698 L->top--; /* pop value */
699 lua_unlock(L);
700}
701
702
703LUA_API void lua_rawset (lua_State *L, int idx) {

Callers 15

setfieldFunction · 0.70
setboolfieldFunction · 0.70
ll_requireFunction · 0.70
modinitFunction · 0.70
ll_moduleFunction · 0.70
ll_seeallFunction · 0.70
setpathFunction · 0.70
luaopen_packageFunction · 0.70
createcatFunction · 0.70
setmaxFunction · 0.70
luaopen_lpegFunction · 0.70
createmetatableFunction · 0.70

Calls 2

index2adrFunction · 0.70
luaV_settableFunction · 0.70

Tested by

no test coverage detected