aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2023-10-31 22:29:07 +0000
committerAryadev Chavali <aryadev@aryadevchavali.com>2023-10-31 22:30:53 +0000
commit5045452d7a78d888329eec886011a176afd7adb0 (patch)
tree1ad92f45e02f61706c0a00d8b0b7fe4f7551e0cb /lib
parent0f0a1c7699fe48c726081230df605674a8a89c57 (diff)
downloadovm-5045452d7a78d888329eec886011a176afd7adb0.tar.gz
ovm-5045452d7a78d888329eec886011a176afd7adb0.tar.bz2
ovm-5045452d7a78d888329eec886011a176afd7adb0.zip
Added flag which forces the printing of hexes
Anything other than char (which can just use print.byte to print the hex) and byte (which prints hexes anyway), all other types may be forced to print a hex rather than a number if PRINT_HEX is 1.
Diffstat (limited to 'lib')
-rw-r--r--lib/base.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/base.h b/lib/base.h
index 7acf13f..e0cabc0 100644
--- a/lib/base.h
+++ b/lib/base.h
@@ -27,6 +27,9 @@
#ifndef VERBOSE
#define VERBOSE 0
#endif
+#ifndef PRINT_HEX
+#define PRINT_HEX 0
+#endif
typedef uint8_t u8;
typedef int8_t i8;