summaryrefslogtreecommitdiffhomepage
path: root/compat
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-03-04 15:24:36 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-03-04 15:24:36 +0100
commit925f22933f1a6f96d3a7ed9cab286b8db44b84f6 (patch)
tree5fc63a4ff3fbf7ded5132133fdf1123e0ea72641 /compat
parentd5cd7d31c92593c593c8c809588284d61316c2ec (diff)
compat/macros: add function name macro
Diffstat (limited to 'compat')
-rw-r--r--compat/macros.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/compat/macros.hpp b/compat/macros.hpp
index df71b1f3..c8fbca20 100644
--- a/compat/macros.hpp
+++ b/compat/macros.hpp
@@ -47,3 +47,8 @@
# define unlikely(x) (x)
#endif
+#if defined _MSC_VER
+# define OTR_FUNNAME (__FUNCSIG__)
+#else
+# define OTR_FUNNAME (__PRETTY_FUNCTION__)
+#endif