mirror of
https://github.com/NoelFB/blah.git
synced 2025-04-08 00:56:04 +08:00
log needs stdlib for abort
This commit is contained in:
parent
5bfd9ee01c
commit
4c0531a3f3
@ -3,6 +3,7 @@
|
|||||||
// Error / Abort
|
// Error / Abort
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
#define BLAH_ERROR(message) \
|
#define BLAH_ERROR(message) \
|
||||||
do { Log::error(message "\n\tin file: %s:%d", __FILE__, __LINE__); abort(); } while(0)
|
do { Log::error(message "\n\tin file: %s:%d", __FILE__, __LINE__); abort(); } while(0)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user