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

Function lua_rawgetp

emmy_debugger/src/api/lua_api_loader.cpp:388–403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

386}
387
388int lua_rawgetp(lua_State* L, int idx, const void* p)
389{
390 if (luaVersion == LuaVersion::LUA_51 || luaVersion == LuaVersion::LUA_JIT)
391 {
392 if (idx < 0)
393 {
394 idx += lua_gettop(L) + 1;
395 }
396 lua_pushlightuserdata(L, (void*)p);
397 return lua_rawget(L, idx);
398 }
399 else
400 {
401 return e_lua_rawgetp(L, idx, p);
402 }
403}
404
405void lua_rawsetp(lua_State* L, int idx, const void* p)
406{

Callers

nothing calls this directly

Calls 3

lua_gettopFunction · 0.50
lua_pushlightuserdataFunction · 0.50
lua_rawgetFunction · 0.50

Tested by

no test coverage detected