From ab76e6596ff0585f00bc9135c5a5dada47aee759 Mon Sep 17 00:00:00 2001 From: khizmax Date: Sun, 30 Nov 2014 16:03:52 +0300 Subject: [PATCH] Removed cds_assert macro --- cds/details/defs.h | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/cds/details/defs.h b/cds/details/defs.h index 5eae98a5..29389c3f 100644 --- a/cds/details/defs.h +++ b/cds/details/defs.h @@ -427,26 +427,4 @@ namespace cds { } // namespace cds - -//@cond -#ifdef _DEBUG -# define cds_assert(X) assert(X) -#else -# include // snprintf - static inline void cds_assert_( bool bCond, char const * pszMsg, char const * pszFile, int nLine ) - { - if ( !bCond ) { - char buf[4096]; -# if CDS_COMPILER == CDS_COMPILER_MSVC || (CDS_COMPILER == CDS_COMPILER_INTEL && CDS_OS_INTERFACE == CS_OSI_WINDOWS) - _snprintf_s( buf, sizeof(buf)/sizeof(buf[0]), _TRUNCATE, pszMsg, pszFile, nLine ); -# else - snprintf( buf, sizeof(buf)/sizeof(buf[0]), pszMsg, pszFile, nLine ); -# endif - throw cds::Exception( buf ); - } - } -# define cds_assert(X) cds_assert_( X, "%s (%d): Assert failed: " #X, __FILE__, __LINE__ ); -#endif -//@endcond - #endif // #ifndef __CDS_DEFS_H -- 2.34.1