X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESHUtils%2FSMESH_TryCatch.cxx;h=48ebcdee27f3e443318b666c0a66183278951770;hp=4552a1e7f9126381348342826674fbc6e2afbe4f;hb=88ff35ddd4a4442397bc5f6ba893aaf9c51b1856;hpb=ad1d7c52f7a12f0b755a98e925bfd13c3e8daada diff --git a/src/SMESHUtils/SMESH_TryCatch.cxx b/src/SMESHUtils/SMESH_TryCatch.cxx index 4552a1e7f..48ebcdee2 100644 --- a/src/SMESHUtils/SMESH_TryCatch.cxx +++ b/src/SMESHUtils/SMESH_TryCatch.cxx @@ -39,6 +39,15 @@ const char* SMESH::returnError(const char* txt) return txt; } +void SMESH::printErrorInDebugMode(const char* txt) +{ +#ifdef _DEBUG_ + std::cerr << txt << " " << __FILE__ << ": " << __LINE__ << std::endl; +#else + (void)txt; // unused in release mode +#endif +} + // ------------------------------------------------------------------ #include "SMESH_ComputeError.hxx"