MCPcopy Create free account
hub / github.com/InoriRus/Kyty / UnregisterFunc

Function UnregisterFunc

source/lib/Scripts/src/Scripts.cpp:251–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249}
250
251void UnregisterFunc(const char* name)
252{
253 lua_init();
254
255 String n = String::FromUtf8(name);
256 EXIT_IF(!GlobalGetVar(n).IsCFunction());
257 EXIT_IF(!g_help_list->map.Contains(n));
258
259 RunString(n + U" = nil");
260 g_help_list->map.Remove(n);
261}
262
263int ArgGetVarCount()
264{

Callers

nothing calls this directly

Calls 6

lua_initFunction · 0.85
GlobalGetVarFunction · 0.85
RunStringFunction · 0.85
IsCFunctionMethod · 0.80
ContainsMethod · 0.45
RemoveMethod · 0.45

Tested by

no test coverage detected