0026937: Eliminate NO_CXX_EXCEPTION macro support
[occt.git] / src / OSD / OSD_Exception_ACCESS_VIOLATION.hxx
index 3d9b3c0..382b994 100644 (file)
@@ -25,7 +25,7 @@ DEFINE_STANDARD_HANDLE(OSD_Exception_ACCESS_VIOLATION, OSD_Exception)
 
 #if !defined No_Exception && !defined No_OSD_Exception_ACCESS_VIOLATION
   #define OSD_Exception_ACCESS_VIOLATION_Raise_if(CONDITION, MESSAGE) \
-  if (CONDITION) OSD_Exception_ACCESS_VIOLATION::Raise(MESSAGE);
+  if (CONDITION) throw OSD_Exception_ACCESS_VIOLATION(MESSAGE);
 #else
   #define OSD_Exception_ACCESS_VIOLATION_Raise_if(CONDITION, MESSAGE)
 #endif