X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESHUtils%2FSMESH_TryCatch.cxx;h=49bfe9c53fe393346dde50962274173f4d47bf82;hb=bba2ceaf86d0a48fb0b256801edeb2418b0f93ce;hp=b026cdd6bf8427c9a309ec25c97830915b6f1d53;hpb=560f8b2d0c2a7fdb4047f981cfac56ed3629bc1a;p=modules%2Fsmesh.git diff --git a/src/SMESHUtils/SMESH_TryCatch.cxx b/src/SMESHUtils/SMESH_TryCatch.cxx index b026cdd6b..49bfe9c53 100644 --- a/src/SMESHUtils/SMESH_TryCatch.cxx +++ b/src/SMESHUtils/SMESH_TryCatch.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2022 CEA/DEN, EDF R&D, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -30,6 +30,7 @@ void SMESH::throwSalomeEx(const char* txt) void SMESH::doNothing(const char* txt) { + (void)txt; // unused in release mode MESSAGE( txt << " " << __FILE__ << ": " << __LINE__ ); } @@ -38,6 +39,12 @@ const char* SMESH::returnError(const char* txt) return txt; } +void SMESH::printErrorInDebugMode(const char* txt) +{ + if (SALOME::VerbosityActivated()) + std::cerr << txt << " " << __FILE__ << ": " << __LINE__ << std::endl; +} + // ------------------------------------------------------------------ #include "SMESH_ComputeError.hxx"