medfall

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

commit 7706b4c9519894b5ced33f61df6ed0b47277b9da
parent cb6c8e254293d7fe9a777b864b8d3a75d77f1f06
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sat Jan 16 09:29:59 +0000

Use \x1b instead of \e

Diffstat:
gl.cc | 8++++----
intrinsics.h | 2+-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/gl.cc b/gl.cc @@ -13,10 +13,10 @@ static const int WIDTH = 640; static const int HEIGHT = 480; -#define RESET "\e[0m" -#define RED "\e[1;31m" -#define YELLOW "\e[1;32m" -#define GREEN "\e[1;33m" +#define RESET "\x1b[0m" +#define RED "\x1b[1;31m" +#define YELLOW "\x1b[1;32m" +#define GREEN "\x1b[1;33m" #ifndef __APPLE__ char * type_string( const GLenum type ) { diff --git a/intrinsics.h b/intrinsics.h @@ -66,7 +66,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, "\e[1;31massertion failed at " __FILE__ " line " STRINGIFY( __LINE__ ) ": \e[0;1m" #predicate "\e[0m" ) +#define assert( predicate ) mike_assert( predicate, "\x1b[1;31massertion failed at " __FILE__ " line " STRINGIFY( __LINE__ ) ": \x1b[0;1m" #predicate "\x1b[0m" ) // TODO: this sucks inline u8 * file_get_contents( const char * const path, size_t * const out_len = NULL ) {