MCPcopy Create free account
hub / github.com/assaultcube/AC / fatal

Function fatal

source/src/main.cpp:60–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58COMMAND(quit, "");
59
60void fatal(const char *s, ...) // failure exit
61{
62 static int errors = 0;
63 errors++;
64
65 if(errors <= 2)
66 {
67 defvformatstring(msg,s,s);
68 if(errors <= 1)
69 {
70 defvformatstring(msg,s,s);
71 defformatstring(msgerr)("%s (%s)\n", msg, SDL_GetError());
72 cleanup(msgerr);
73 }
74 else puts(msg);
75 }
76 DELETEP(clientlogfile);
77 exit(EXIT_FAILURE);
78}
79
80static int initing = NOT_INITING;
81static bool restoredinits = false;

Callers 11

texdecalFunction · 0.70
stackdumperFunction · 0.70
stackdumperMethod · 0.70
addmsgFunction · 0.70
reloadfontsFunction · 0.70
startMethod · 0.70
executeretFunction · 0.70
servermsinitFunction · 0.70
setupscreenFunction · 0.70
resetglFunction · 0.70
main.cppFile · 0.70

Calls 1

cleanupFunction · 0.85

Tested by

no test coverage detected