MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / lua_rawsetp

Function lua_rawsetp

emmy_debugger/src/api/lua_api_loader.cpp:405–421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403}
404
405void lua_rawsetp(lua_State* L, int idx, const void* p)
406{
407 if (luaVersion == LuaVersion::LUA_51 || luaVersion == LuaVersion::LUA_JIT)
408 {
409 if (idx < 0)
410 {
411 idx += lua_gettop(L) + 1;
412 }
413 lua_pushlightuserdata(L, (void*)p);
414 lua_insert(L, -2);
415 lua_rawset(L, idx);
416 }
417 else
418 {
419 return e_lua_rawsetp(L, idx, p);
420 }
421}
422
423void lua_insert(lua_State* L, int idx)
424{

Callers

nothing calls this directly

Calls 4

lua_insertFunction · 0.70
lua_gettopFunction · 0.50
lua_pushlightuserdataFunction · 0.50
lua_rawsetFunction · 0.50

Tested by

no test coverage detected