Program: gdcm
Module: $RCSfile: gdcmDebug.h,v $
Language: C++
- Date: $Date: 2005/01/07 21:09:42 $
- Version: $Revision: 1.15 $
+ Date: $Date: 2005/01/11 17:54:10 $
+ Version: $Revision: 1.19 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
#include "gdcmCommon.h"
+#include <sstream>
+#include <assert.h>
+
namespace gdcm
{
//-----------------------------------------------------------------------------
#ifdef GDCM_COMPILER_HAS_FUNCTION
// Handle particular case for GNU C++ which also defines __PRETTY_FUNCTION__
// which is a lot nice in C++
+#ifdef __BORLANDC__
+# define __FUNCTION__ __FUNC__
+#endif
#ifdef __GNUC__
# define GDCM_FUNCTION __PRETTY_FUNCTION__
#else
*/
#define gdcmAssertMacro(arg) \
{ \
- if( arg ) \
+ if( !(arg) ) \
{ \
std::ostringstream osmacro; \
osmacro << "Assert: In " __FILE__ ", line " << __LINE__ \