X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESHUtils%2FSMESH_TryCatch.cxx;h=48ebcdee27f3e443318b666c0a66183278951770;hb=f016bdf914220827ec8f9a7048bc78fc3fb8c299;hp=4552a1e7f9126381348342826674fbc6e2afbe4f;hpb=a274ade365bd0f0e19d56c577acc4a13aa1972a7;p=modules%2Fsmesh.git 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"