Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bos #24400 [CEA] Option in SALOME for not storing in med files the indices (number...
[modules/smesh.git]
/
src
/
SMESHUtils
/
SMESH_TryCatch.cxx
diff --git
a/src/SMESHUtils/SMESH_TryCatch.cxx
b/src/SMESHUtils/SMESH_TryCatch.cxx
index 4552a1e7f9126381348342826674fbc6e2afbe4f..48ebcdee27f3e443318b666c0a66183278951770 100644
(file)
--- 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;
}
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"
// ------------------------------------------------------------------
#include "SMESH_ComputeError.hxx"