diff options
author | Your Name <you@example.com> | 2021-11-09 18:29:25 +0000 |
---|---|---|
committer | Your Name <you@example.com> | 2021-11-10 05:25:29 +0000 |
commit | 02e8919cbc744064510f6cd99539f7662343073f (patch) | |
tree | 9f9a8fc6346242b793ce7e671813168ccec72a8e /frida_mode/include/util.h | |
parent | 8578b6b01c5f41d8a75ae83cb2c058fe89bf90df (diff) | |
download | afl++-02e8919cbc744064510f6cd99539f7662343073f.tar.gz |
Suppress spurious output
Diffstat (limited to 'frida_mode/include/util.h')
-rw-r--r-- | frida_mode/include/util.h | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/frida_mode/include/util.h b/frida_mode/include/util.h index 525e9d40..77fbda94 100644 --- a/frida_mode/include/util.h +++ b/frida_mode/include/util.h @@ -3,12 +3,38 @@ #include "frida-gumjs.h" +#include "debug.h" + #define UNUSED_PARAMETER(x) (void)(x) #define IGNORED_RETURN(x) (void)!(x) guint64 util_read_address(char *key); -guint64 util_read_num(char *key); +guint64 util_read_num(char *key); +gboolean util_output_enabled(void); + +#define FOKF(x...) \ + do { \ + \ + if (!util_output_enabled()) { break; } \ + \ + OKF(x); \ + \ + } while (0) + +#define FWARNF(x...) \ + do { \ + \ + WARNF(x); \ + \ + } while (0) + +#define FFATAL(x...) \ + do { \ + \ + FATAL(x); \ + \ + } while (0) #endif |