mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-31 14:38:21 +00:00
logging: make assert failure print as red text
This commit is contained in:
@@ -10,7 +10,7 @@ void logging_sethook(void (*fun)(char));
|
|||||||
|
|
||||||
#define __assert(x) \
|
#define __assert(x) \
|
||||||
if (!(x)){ \
|
if (!(x)){ \
|
||||||
printf("%s:%s:%d: %s failed\n", __FILE__, __func__, __LINE__, #x); \
|
printf("\e[91m%s:%s:%d: %s failed\n\e[0m", __FILE__, __func__, __LINE__, #x); \
|
||||||
for(;;); \
|
for(;;); \
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user