void SMESH::printErrorInDebugMode(const char* txt)
{
-#ifdef _DEBUG_
- std::cerr << txt << " " << __FILE__ << ": " << __LINE__ << std::endl;
-#else
- (void)txt; // unused in release mode
-#endif
+ if (SALOME::VerbosityActivated())
+ std::cerr << txt << " " << __FILE__ << ": " << __LINE__ << std::endl;
}
// ------------------------------------------------------------------