Salome HOME
bos #24400 [CEA] Option in SALOME for not storing in med files the indices (number...
[modules/smesh.git] / src / SMESHUtils / SMESH_TryCatch.cxx
index 4552a1e7f9126381348342826674fbc6e2afbe4f..48ebcdee27f3e443318b666c0a66183278951770 100644 (file)
@@ -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"