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

Function Abort

external/sentencepiece/src/error.cc:34–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32int gTestCounter = 0;
33
34void Abort() {
35 if (GetTestCounter() == 1) {
36 SetTestCounter(2);
37 } else {
38 std::cerr << "Program terminated with an unrecoverable error." << std::endl;
39 ShutdownLibrary();
40 exit(-1);
41 }
42}
43
44void Exit(int code) {
45 if (GetTestCounter() == 1) {

Callers 1

~DieMethod · 0.85

Calls 3

GetTestCounterFunction · 0.85
SetTestCounterFunction · 0.85
ShutdownLibraryFunction · 0.85

Tested by

no test coverage detected