| 3297 | } // namespace platform |
| 3298 | |
| 3299 | extern "C" void criticalError(int exitCode, const char* type, const char* message) { |
| 3300 | // Be careful! This function may be called asynchronously from a thread or in other weird conditions |
| 3301 | |
| 3302 | fprintf(stderr, "ERROR: %s\n", message); |
| 3303 | |
| 3304 | if (g_network && !g_network->isSimulated()) { |
| 3305 | TraceEvent ev(SevError, type); |
| 3306 | ev.detail("Message", message); |
| 3307 | } |
| 3308 | |
| 3309 | flushAndExit(exitCode); |
| 3310 | } |
| 3311 | |
| 3312 | extern void flushTraceFileVoid(); |
| 3313 |
no test coverage detected