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
#24666 [CEA][Windows] BLSURPLUGIN compilation issue
[modules/smesh.git]
/
src
/
SMESHUtils
/
SMESH_TryCatch.cxx
diff --git
a/src/SMESHUtils/SMESH_TryCatch.cxx
b/src/SMESHUtils/SMESH_TryCatch.cxx
index b026cdd6bf8427c9a309ec25c97830915b6f1d53..48ebcdee27f3e443318b666c0a66183278951770 100644
(file)
--- a/
src/SMESHUtils/SMESH_TryCatch.cxx
+++ b/
src/SMESHUtils/SMESH_TryCatch.cxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-20
16
CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-20
21
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
//
// 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 SMESH::doNothing(const char* txt)
{
+ (void)txt; // unused in release mode
MESSAGE( txt << " " << __FILE__ << ": " << __LINE__ );
}
MESSAGE( txt << " " << __FILE__ << ": " << __LINE__ );
}
@@
-38,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"