From 925f22933f1a6f96d3a7ed9cab286b8db44b84f6 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 4 Mar 2018 15:24:36 +0100 Subject: compat/macros: add function name macro --- logic/pipeline.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'logic') 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 \ -- cgit v1.2.3