fix dbg macro in release mode
This commit is contained in:
parent
4f04ebcedf
commit
d64bc6b9ed
|
@ -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() \
|
||||
|
|
Loading…
Reference in New Issue