diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-10-31 22:29:07 +0000 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-10-31 22:30:53 +0000 |
commit | 5045452d7a78d888329eec886011a176afd7adb0 (patch) | |
tree | 1ad92f45e02f61706c0a00d8b0b7fe4f7551e0cb /lib/base.h | |
parent | 0f0a1c7699fe48c726081230df605674a8a89c57 (diff) | |
download | ovm-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/base.h')
-rw-r--r-- | lib/base.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |