diff options
author | Dominik Maier <domenukk@gmail.com> | 2020-08-10 19:04:51 +0200 |
---|---|---|
committer | Dominik Maier <domenukk@gmail.com> | 2020-08-10 19:04:51 +0200 |
commit | a422fcaa40a3c7cd577b693060d9bc2e6c36cf73 (patch) | |
tree | 6f1bdb94de40408d654c93a5e7e5b5d0c37b9473 /include/debug.h | |
parent | fb84103ffb364b7f2b8a4c51f6465948608968b5 (diff) | |
download | afl++-a422fcaa40a3c7cd577b693060d9bc2e6c36cf73.tar.gz |
fixed minor inconsistencies, reenabled warnings
Diffstat (limited to 'include/debug.h')
-rw-r--r-- | include/debug.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/debug.h b/include/debug.h index ae2946f0..cb0a63e9 100644 --- a/include/debug.h +++ b/include/debug.h @@ -29,10 +29,15 @@ #include "config.h" /* __FUNCTION__ is non-iso */ -#ifdef __func__ - #define __FUNCTION__ __func__ +#ifndef __FUNCTION__ + #ifdef __func__ + #define __FUNCTION__ __func__ + #else + #define __FUNCTION__ "unknown_func" + #endif #endif + /******************* * Terminal colors * *******************/ |