0026937: Eliminate NO_CXX_EXCEPTION macro support
[occt.git] / src / OSD / OSD_SIGSEGV.hxx
index 4b0d860..9c32bf4 100644 (file)
@@ -25,7 +25,7 @@ DEFINE_STANDARD_HANDLE(OSD_SIGSEGV, OSD_Signal)
 
 #if !defined No_Exception && !defined No_OSD_SIGSEGV
   #define OSD_SIGSEGV_Raise_if(CONDITION, MESSAGE) \
-  if (CONDITION) OSD_SIGSEGV::Raise(MESSAGE);
+  if (CONDITION) throw OSD_SIGSEGV(MESSAGE);
 #else
   #define OSD_SIGSEGV_Raise_if(CONDITION, MESSAGE)
 #endif