0026937: Eliminate NO_CXX_EXCEPTION macro support
[occt.git] / src / Storage / Storage_StreamTypeMismatchError.hxx
index dbbc1c3..d1d9561 100644 (file)
@@ -27,7 +27,7 @@ DEFINE_STANDARD_HANDLE(Storage_StreamTypeMismatchError, Storage_StreamReadError)
 
 #if !defined No_Exception && !defined No_Storage_StreamTypeMismatchError
   #define Storage_StreamTypeMismatchError_Raise_if(CONDITION, MESSAGE) \
-  if (CONDITION) Storage_StreamTypeMismatchError::Raise(MESSAGE);
+  if (CONDITION) throw Storage_StreamTypeMismatchError(MESSAGE);
 #else
   #define Storage_StreamTypeMismatchError_Raise_if(CONDITION, MESSAGE)
 #endif