diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-10-29 16:58:58 +0000 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-10-29 16:59:31 +0000 |
commit | 157c79d53c4d04f6c6af1103a2db3a652b240edb (patch) | |
tree | ec6e535c94dcd65a2c5d39ae9361ca01b827722a /lib/base.h | |
parent | 597a45aa73d4d66fce4dd9135087e0e82f46899c (diff) | |
download | ovm-157c79d53c4d04f6c6af1103a2db3a652b240edb.tar.gz ovm-157c79d53c4d04f6c6af1103a2db3a652b240edb.tar.bz2 ovm-157c79d53c4d04f6c6af1103a2db3a652b240edb.zip |
Added a "usage" message and colours for assembler
Prints useful and pretty messages when verbose being at least 1.
Diffstat (limited to 'lib/base.h')
-rw-r--r-- | lib/base.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -18,6 +18,10 @@ #define ARR_SIZE(xs) (sizeof(xs) / sizeof(xs[0])) #define MAX(a, b) ((a) > (b) ? (a) : (b)) #define MIN(a, b) ((a) > (b) ? (b) : (a)) +#define TERM_GREEN "\e[0;32m" +#define TERM_YELLOW "\e[0;33m" +#define TERM_RED "\e[0;31m" +#define TERM_RESET "\e[0;0m" // Flags #ifndef VERBOSE |