Program: gdcm
Module: $RCSfile: gdcmDebug.cxx,v $
Language: C++
- Date: $Date: 2004/10/13 14:15:29 $
- Version: $Revision: 1.9 $
+ Date: $Date: 2004/11/09 22:30:43 $
+ Version: $Revision: 1.12 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
{
return ;
}
- std::cerr << "gdcm::" << msg1 << ' ' << msg2 << std::endl;
+ std::cerr << "gdcm::" << msg1 << ' ' << msg2 << std::endl << std::flush;
}
/**
{
return;
}
- std::cerr << "gdcm::" << msg1 << ' ' << msg2 << std::endl;
+ std::cerr << "gdcm::" << msg1 << ' ' << msg2 << std::endl << std::flush;
Exit(1);
}
void Debug::Error(const char* msg1, const char* msg2,
const char* msg3)
{
- std::cerr << "gdcm::" << msg1 << ' ' << msg2 << ' ' << msg3 << std::endl;
+ std::cerr << "gdcm::" << msg1 << ' ' << msg2 << ' ' << msg3
+ << std::endl << std::flush;
Exit(1);
}
}
if (!test)
{
- std::cerr << "gdcm::" << msg1 << ' ' << msg2 << std::endl;
+ std::cerr << "gdcm::" << msg1 << ' ' << msg2
+ << std::endl << std::flush;
}
}
#ifdef __GNUC__
std::exit(a);
#endif
-#ifdef _MSC_VER
+#if defined(_MSC_VER) || defined(__BORLANDC__)
exit(a); // Found in #include <stdlib.h>
#endif
}