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

Method ClearCache

emmy_debugger/src/debugger/emmy_debugger.cpp:567–581  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

565}
566
567void Debugger::ClearCache() const {
568 if (!currentL) {
569 return;
570 }
571
572 auto L = currentL;
573
574
575 lua_getfield(L, LUA_REGISTRYINDEX, CACHE_TABLE_NAME);
576 if (!lua_isnil(L, -1)) {
577 lua_pushnil(L);
578 lua_setfield(L, LUA_REGISTRYINDEX, CACHE_TABLE_NAME);
579 }
580 lua_pop(L, 1);
581}
582
583void Debugger::DoAction(DebugAction action) {
584 // 锁加到这里

Callers

nothing calls this directly

Calls 3

lua_getfieldFunction · 0.50
lua_pushnilFunction · 0.50
lua_setfieldFunction · 0.50

Tested by

no test coverage detected