aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2023-10-29 16:58:58 +0000
committerAryadev Chavali <aryadev@aryadevchavali.com>2023-10-29 16:59:31 +0000
commit157c79d53c4d04f6c6af1103a2db3a652b240edb (patch)
treeec6e535c94dcd65a2c5d39ae9361ca01b827722a /lib
parent597a45aa73d4d66fce4dd9135087e0e82f46899c (diff)
downloadovm-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')
-rw-r--r--lib/base.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/base.h b/lib/base.h
index 172abff..537792f 100644
--- a/lib/base.h
+++ b/lib/base.h
@@ -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