X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDebug.cxx;h=d301a9bf69297b1e0129ffb682fcdc4e54f7ee2f;hb=43f675c5d192ff4b28c42397d36beee5988419de;hp=787c529cc98d5880043d853804f6f673891f0021;hpb=c132b43ebda61490fe85f62a88969b6cfb9e400d;p=gdcm.git diff --git a/src/gdcmDebug.cxx b/src/gdcmDebug.cxx index 787c529c..d301a9bf 100644 --- a/src/gdcmDebug.cxx +++ b/src/gdcmDebug.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDebug.cxx,v $ Language: C++ - Date: $Date: 2004/10/15 10:43:27 $ - Version: $Revision: 1.10 $ + Date: $Date: 2005/01/06 20:03:26 $ + Version: $Revision: 1.13 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -47,7 +47,7 @@ void Debug::SetDebug(int level) * @param msg1 first message part * @param msg2 second message part */ -void Debug::Verbose(int level, const char * msg1, const char * msg2) +void Debug::Verbose(int level, const char *msg1, const char *msg2) { if (level > DebugLevel) { @@ -62,7 +62,7 @@ void Debug::Verbose(int level, const char * msg1, const char * msg2) * @param msg1 first message part * @param msg2 second message part */ -void Debug::Error(bool test, const char * msg1, const char * msg2) +void Debug::Error(bool test, const char *msg1, const char *msg2) { if (!test) { @@ -78,8 +78,8 @@ void Debug::Error(bool test, const char * msg1, const char * msg2) * @param msg2 second message part * @param msg3 Third message part */ -void Debug::Error(const char* msg1, const char* msg2, - const char* msg3) +void Debug::Error(const char *msg1, const char *msg2, + const char *msg3) { std::cerr << "gdcm::" << msg1 << ' ' << msg2 << ' ' << msg3 << std::endl << std::flush; @@ -93,8 +93,8 @@ void Debug::Error(const char* msg1, const char* msg2, * @param msg1 first message part * @param msg2 second message part */ -void Debug::Assert(int level, bool test, const char * msg1, - const char * msg2) +void Debug::Assert(int level, bool test, const char *msg1, + const char *msg2) { if (level > DebugLevel) { @@ -116,7 +116,7 @@ void Debug::Exit(int a) #ifdef __GNUC__ std::exit(a); #endif -#ifdef _MSC_VER +#if defined(_MSC_VER) || defined(__BORLANDC__) exit(a); // Found in #include #endif }