fix dbg macro in release mode

This commit is contained in:
Johannes Kapfhammer 2019-10-12 14:50:03 +02:00
parent 4f04ebcedf
commit d64bc6b9ed
1 changed files with 4 additions and 1 deletions

View File

@ -203,7 +203,9 @@ template <typename T> T &&identity(T &&t) { return std::forward<T>(t); }
} // namespace soi
#ifdef SOI_RELEASE
#define dbg(...) dbg_macro::identity(__VA_ARGS__)
#define dbg(...) ::soi::detail::identity(__VA_ARGS__)
#else
#if defined(__clang__)
@ -217,6 +219,7 @@ template <typename T> T &&identity(T &&t) { return std::forward<T>(t); }
#define SOI_IS_NONEMPTY(...) __VA_OPT__(1)
#define SOI_DBG_IMPL_ SOI_DBG_IMPL_0
#endif
#define SOI_DBG_IMPL_0() \