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.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/debug.h b/include/debug.h
index b3865c19..8824ff6b 100644
--- a/include/debug.h
+++ b/include/debug.h
@@ -28,10 +28,23 @@
 #include "types.h"
 #include "config.h"
 
+/* __FUNCTION__ is non-iso */
+#ifndef __FUNCTION__
+#ifdef __func__
+#define __FUNCTION__ __func__
+#else
+#define __FUNCTION__ "func_unknown"
+#endif
+#endif
+
 /*******************
  * Terminal colors *
  *******************/
 
+#ifndef MESSAGES_TO_STDOUT
+#define MESSAGES_TO_STDOUT
+#endif
+
 #ifdef USE_COLOR
 
 #define cBLK "\x1b[0;30m"