about summary refs log tree commit diff
path: root/include/debug.h
diff options
context:
space:
mode:
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 *
  *******************/