summaryrefslogtreecommitdiff
path: root/include/generic.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/generic.h')
-rw-r--r--include/generic.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/generic.h b/include/generic.h
index 0b16d2c..1fe18d0 100644
--- a/include/generic.h
+++ b/include/generic.h
@@ -123,6 +123,12 @@ inline T ABS(T x) {
}
#endif
+#if defined __linux__ || defined sun || defined __solaris__ || defined __CYGWIN32__ || defined __MINGW32__
+#define FUNCNAME String(__PRETTY_FUNCTION__)
+#else
+#define FUNCNAME String(__FUNCSIG__)
+#endif
+
#else // cplusplus
#ifndef MAX