commit 2fcd4aa48f536745a3e08bda11d9103eb7198dc1 parent a24aebfd962068fbb49ea8be4bbdb7d8ce73a736 Author: Michael Savage <mikejsavage@gmail.com> Date: Sun Dec 4 00:41:55 +0200 abort in FATAL Diffstat:
log.h | | | 2 | +- |
diff --git a/log.h b/log.h @@ -17,6 +17,6 @@ void log_generic( LogLevel level, const char * fmt, ... ); #define INFO( form, ... ) log_generic( LOGLEVEL_INFO, "[INFO] [thread %u] " form "\n", thread_getid(), ##__VA_ARGS__ ) #define WARN( form, ... ) log_generic( LOGLEVEL_WARNING, "[WARN] [thread %u] " form "\n", thread_getid(), ##__VA_ARGS__ ) -#define FATAL( form, ... ) do { log_generic( LOGLEVEL_FATAL, "[FATAL] [thread %u] " form "\n", thread_getid(), ##__VA_ARGS__ ); exit( 1 ); } while( 0 ) +#define FATAL( form, ... ) do { log_generic( LOGLEVEL_FATAL, "[FATAL] [thread %u] " form "\n", thread_getid(), ##__VA_ARGS__ ); abort(); } while( 0 ) #endif // _LOG_H_