MCPcopy Create free account
hub / github.com/Tencent/UnLua / CollectGarbage

Method CollectGarbage

Plugins/UnLua/Source/UnLua/Private/UnLuaConsoleCommands.cpp:71–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69 }
70
71 void FUnLuaConsoleCommands::CollectGarbage(const TArray<FString>& Args) const
72 {
73 auto Env = Module->GetEnv();
74 if (!Env)
75 {
76 UE_LOG(LogUnLua, Warning, TEXT("no available lua env found to collect garbage."));
77 return;
78 }
79
80 Env->GC();
81 }
82}
83
84#undef LOCTEXT_NAMESPACE

Callers

nothing calls this directly

Calls 2

GCMethod · 0.80
GetEnvMethod · 0.45

Tested by

no test coverage detected