medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 9a923e4e00e1f93a748fc9a3c78e1e13a6b65dfe
parent 89581657b478e8a54227d7d2f3cccaffa944225d
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Tue Sep 22 12:44:37 +0100

Add colours to assert

Diffstat:
intrinsics.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/intrinsics.h b/intrinsics.h @@ -58,7 +58,7 @@ inline void mike_assert( const bool predicate, const char * const message ) { #define STRINGIFY_HELPER( x ) #x #define STRINGIFY( x ) STRINGIFY_HELPER( x ) -#define assert( predicate ) mike_assert( predicate, "assertion failed at " __FILE__ " line " STRINGIFY( __LINE__ ) ": " #predicate ) +#define assert( predicate ) mike_assert( predicate, "\e[1;31massertion failed at " __FILE__ " line " STRINGIFY( __LINE__ ) ": \e[0;1m" #predicate "\e[0m" ) // TODO: this sucks inline u8 * file_get_contents( const char * const path, size_t * const out_len = nullptr ) {