diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-03-04 15:24:36 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-03-04 15:24:36 +0100 |
commit | 925f22933f1a6f96d3a7ed9cab286b8db44b84f6 (patch) | |
tree | 5fc63a4ff3fbf7ded5132133fdf1123e0ea72641 /logic | |
parent | d5cd7d31c92593c593c8c809588284d61316c2ec (diff) |
compat/macros: add function name macro
Diffstat (limited to 'logic')
-rw-r--r-- | logic/pipeline.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/logic/pipeline.cpp b/logic/pipeline.cpp index f691a653..05719351 100644 --- a/logic/pipeline.cpp +++ b/logic/pipeline.cpp @@ -15,6 +15,7 @@ #include "compat/sleep.hpp" #include "compat/math.hpp" #include "compat/meta.hpp" +#include "compat/macros.hpp" #include "pipeline.hpp" #include "logic/shortcuts.h" @@ -235,13 +236,6 @@ bool maybe_nan(const char* text, const char* fun, int line, const xs&... vals) return false; } -#if defined _MSC_VER -# define OTR_FUNNAME2 (__FUNCSIG__) -#else -# define OTR_FUNNAME2 (__PRETTY_FUNCTION__) -#endif -// don't expand -# define OTR_FUNNAME (OTR_FUNNAME2) #define nan_check(...) \ do \ |