diff options
| author | van Hauser <vh@thc.org> | 2021-11-10 11:27:24 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-10 11:27:24 +0100 |
| commit | 45748fd7522159d95fc54bc5ea2e5bfc978813e3 (patch) | |
| tree | 9f9a8fc6346242b793ce7e671813168ccec72a8e /frida_mode/include/util.h | |
| parent | 75821d2943ee207a6d862440ac1c466b96a52861 (diff) | |
| parent | 02e8919cbc744064510f6cd99539f7662343073f (diff) | |
| download | afl++-45748fd7522159d95fc54bc5ea2e5bfc978813e3.tar.gz | |
Merge pull request #1153 from WorksButNotTested/frida
Frida
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 |
