]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
PR: to avoid confusion with QThread.exit() QT_THREAD
authorprascle <prascle>
Tue, 6 Apr 2004 14:14:15 +0000 (14:14 +0000)
committerprascle <prascle>
Tue, 6 Apr 2004 14:14:15 +0000 (14:14 +0000)
src/Utils/utilities.h

index f8b86b71e62814c71c318f8736524db66ddfffc3..1cf18d27a2eaae1704e0db31b77fd63af5f58982 100644 (file)
@@ -33,6 +33,7 @@
 
 #include <string>
 #include <iostream>
+#include <cstdlib>
 #include "SALOME_Log.hxx"
 
 /* ---  INFOS is always defined (without _DEBUG_): to be used for warnings, with release version --- */
@@ -82,7 +83,7 @@
 
 #define HERE {cout<<flush ;cerr<<"- Trace "<<__FILE__<<" ["<<__LINE__<<"] : "<<flush ;}
 
-#define INTERRUPTION(code) {HERE;cerr<<"INTERRUPTION return code= "<<code<< endl;exit(code);}
+#define INTERRUPTION(code) {HERE;cerr<<"INTERRUPTION return code= "<<code<< endl;std::exit(code);}
 
 #ifndef ASSERT
 #define ASSERT(condition) \