| 58 | COMMAND(quit, ""); |
| 59 | |
| 60 | void 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 | |
| 80 | static int initing = NOT_INITING; |
| 81 | static bool restoredinits = false; |
no test coverage detected