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

Function lua_rawset

other_src/lua/src/lapi.cpp:703–713  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

701
702
703LUA_API void lua_rawset (lua_State *L, int idx) {
704 StkId t;
705 lua_lock(L);
706 api_checknelems(L, 2);
707 t = index2adr(L, idx);
708 api_check(L, ttistable(t));
709 setobj2t(L, luaH_set(L, hvalue(t), L->top-2), L->top-1);
710 luaC_barriert(L, hvalue(t), L->top-1);
711 L->top -= 2;
712 lua_unlock(L);
713}
714
715
716LUA_API void lua_rawseti (lua_State *L, int idx, int n) {

Callers 15

luaL_setnFunction · 0.70
gethooktableFunction · 0.70
db_sethookFunction · 0.70
luaB_rawsetFunction · 0.70
luaB_newproxyFunction · 0.70
PushEntriesMethod · 0.50
GetBanEntryFunction · 0.50
CreateLuaStateFunction · 0.50
GetCallInInfoFunction · 0.50
PushGameTypesFunction · 0.50
PushGameOptionBitsFunction · 0.50
PushTeamsFunction · 0.50

Calls 2

index2adrFunction · 0.70
luaH_setFunction · 0.70

Tested by

no test coverage detected