[opengtl-commits] [240] clearly indicate that an assertion has failed |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/opengtl-commits Archives
]
Revision: 240
Author: cyrille
Date: 2008-06-26 22:19:53 +0200 (Thu, 26 Jun 2008)
Log Message:
-----------
clearly indicate that an assertion has failed
Modified Paths:
--------------
trunk/OpenGTL/OpenGTL/GTLCore/Debug.cpp
trunk/OpenGTL/OpenGTL/GTLCore/Debug.h
Modified: trunk/OpenGTL/OpenGTL/GTLCore/Debug.cpp
===================================================================
--- trunk/OpenGTL/OpenGTL/GTLCore/Debug.cpp 2008-06-26 20:19:15 UTC (rev 239)
+++ trunk/OpenGTL/OpenGTL/GTLCore/Debug.cpp 2008-06-26 20:19:53 UTC (rev 240)
@@ -184,7 +184,7 @@
GTLCore::String functionName = Private::extractFunctionName( _functionName );
if( isEnabled( _infos, _libraryName, fileName, functionName ) )
{
- _stream << _libraryName << " (Debug): in " << fileName << " at " << _line << " in " << functionName << " : ";
+ _stream << _libraryName << " (Debug): in " << fileName << " at " << _line << " in " << functionName << ": ";
return _stream;
} else {
return *Private::instance()->m_voidStream;
Modified: trunk/OpenGTL/OpenGTL/GTLCore/Debug.h
===================================================================
--- trunk/OpenGTL/OpenGTL/GTLCore/Debug.h 2008-06-26 20:19:15 UTC (rev 239)
+++ trunk/OpenGTL/OpenGTL/GTLCore/Debug.h 2008-06-26 20:19:53 UTC (rev 240)
@@ -78,7 +78,7 @@
#define GTL_ASSERT(assrt) \
if( not (assrt ) ) \
{ \
- GTL_ABORT( #assrt ); \
+ GTL_ABORT( "Assertion failed: " << #assrt ); \
}
#else