0026937: Eliminate NO_CXX_EXCEPTION macro support
[occt.git] / src / Standard / Standard_TypeMismatch.hxx
index a593fa0..4c29d4a 100644 (file)
@@ -27,7 +27,7 @@ DEFINE_STANDARD_HANDLE(Standard_TypeMismatch, Standard_DomainError)
 
 #if !defined No_Exception && !defined No_Standard_TypeMismatch
   #define Standard_TypeMismatch_Raise_if(CONDITION, MESSAGE) \
-  if (CONDITION) Standard_TypeMismatch::Raise(MESSAGE);
+  if (CONDITION) throw Standard_TypeMismatch(MESSAGE);
 #else
   #define Standard_TypeMismatch_Raise_if(CONDITION, MESSAGE)
 #endif