about summary refs log tree commit diff
path: root/include/debug.h
diff options
context:
space:
mode:
authorDominik Maier <domenukk@gmail.com>2020-08-10 19:04:51 +0200
committerDominik Maier <domenukk@gmail.com>2020-08-10 19:04:51 +0200
commita422fcaa40a3c7cd577b693060d9bc2e6c36cf73 (patch)
tree6f1bdb94de40408d654c93a5e7e5b5d0c37b9473 /include/debug.h
parentfb84103ffb364b7f2b8a4c51f6465948608968b5 (diff)
downloadafl++-a422fcaa40a3c7cd577b693060d9bc2e6c36cf73.tar.gz
fixed minor inconsistencies, reenabled warnings
Diffstat (limited to 'include/debug.h')
-rw-r--r--include/debug.h9
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 *
  *******************/