MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / lua_rawset

Function lua_rawset

Source/Misc/lua/src/lua.c:2520–2530  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2518
2519
2520LUA_API void lua_rawset (lua_State *L, int idx) {
2521StkId t;
2522lua_lock(L);
2523api_checknelems(L, 2);
2524t = index2adr(L, idx);
2525api_check(L, ttistable(t));
2526setobj2t(L, luaH_set(L, hvalue(t), L->top-2), L->top-1);
2527luaC_barriert(L, hvalue(t), L->top-1);
2528L->top -= 2;
2529lua_unlock(L);
2530}
2531
2532
2533LUA_API void lua_rawseti (lua_State *L, int idx, int n) {

Callers 15

push_function_metatableFunction · 0.85
add_dependencyMethod · 0.85
set_instance_valueFunction · 0.85
push_instance_metatableFunction · 0.85
openFunction · 0.85
get_weak_tableFunction · 0.85
lua_rawsetpFunction · 0.85
setMethod · 0.85
rawsetFunction · 0.85

Calls 2

index2adrFunction · 0.85
luaH_setFunction · 0.85

Tested by

no test coverage detected