summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-07-23 05:46:33 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-07-23 05:46:33 +0000
commit9fc28596dbda65c5b1569db191c2eac770def655 (patch)
tree84a56529c9ee855acce565ec56b8a61cd12e4802
parentUpdated debug utilities to translate DEV_CHECK_ERR to VERIFY in debug build (diff)
downloadDiligentCore-9fc28596dbda65c5b1569db191c2eac770def655.tar.gz
DiligentCore-9fc28596dbda65c5b1569db191c2eac770def655.zip
Fix build error
-rw-r--r--Platforms/Basic/interface/DebugUtilities.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/Platforms/Basic/interface/DebugUtilities.h b/Platforms/Basic/interface/DebugUtilities.h
index f30eef7b..0ecc6c81 100644
--- a/Platforms/Basic/interface/DebugUtilities.h
+++ b/Platforms/Basic/interface/DebugUtilities.h
@@ -31,18 +31,18 @@
#include <typeinfo>
-#define ASSERTION_FAILED(...)\
+#define ASSERTION_FAILED(Message, ...)\
do{ \
Diligent::MsgStream ms; \
- Diligent::FormatMsg( ms, ##__VA_ARGS__);\
+ Diligent::FormatMsg( ms, Message, ##__VA_ARGS__);\
DebugAssertionFailed( ms.str().c_str(), __FUNCTION__, __FILE__, __LINE__); \
}while(false)
-# define VERIFY(Expr, ...)\
+# define VERIFY(Expr, Message, ...)\
do{ \
if( !(Expr) ) \
{ \
- ASSERTION_FAILED(##__VA_ARGS__);\
+ ASSERTION_FAILED(Message, ##__VA_ARGS__);\
} \
}while(false)
@@ -71,21 +71,21 @@ void CheckDynamicType( SrcType *pSrcPtr )
#endif
#if defined(_DEBUG)
-# define DEV_CHECK_ERR(Expr, ...) VERIFY(Expr, ##__VA_ARGS__)
+# define DEV_CHECK_ERR VERIFY
#elif defined(DEVELOPMENT)
-# define DEV_CHECK_ERR(Expr, ...) CHECK_ERR(Expr, ##__VA_ARGS__)
+# define DEV_CHECK_ERR CHECK_ERR
#else
-# define DEV_CHECK_ERR(Expr, ...) do{}while(false)
+# define DEV_CHECK_ERR(...) do{}while(false)
#endif
#ifdef DEVELOPMENT
-#define DEV_CHECK_WARN(Expr, ...) CHECK_WARN(Expr, ##__VA_ARGS__)
-#define DEV_CHECK_INFO(Expr, ...) CHECK_INFO(Expr, ##__VA_ARGS__)
+#define DEV_CHECK_WARN CHECK_WARN
+#define DEV_CHECK_INFO CHECK_INFO
#else
-#define DEV_CHECK_WARN(Expr, ...) do{}while(false)
-#define DEV_CHECK_INFO(Expr, ...) do{}while(false)
+#define DEV_CHECK_WARN(...) do{}while(false)
+#define DEV_CHECK_INFO(...) do{}while(false)
#endif