MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / Exit

Function Exit

external/sentencepiece/src/error.cc:44–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void Exit(int code) {
45 if (GetTestCounter() == 1) {
46 SetTestCounter(2);
47 } else {
48 ShutdownLibrary();
49 exit(code);
50 }
51}
52
53void SetTestCounter(int c) { gTestCounter = c; }
54bool GetTestCounter() { return gTestCounter; }

Callers

nothing calls this directly

Calls 3

GetTestCounterFunction · 0.85
SetTestCounterFunction · 0.85
ShutdownLibraryFunction · 0.85

Tested by

no test coverage detected