0026937: Eliminate NO_CXX_EXCEPTION macro support
[occt.git] / src / TopoDS / TopoDS_FrozenShape.hxx
index d711570..5161492 100644 (file)
@@ -30,7 +30,7 @@ DEFINE_STANDARD_HANDLE(TopoDS_FrozenShape, Standard_DomainError)
 
 #if !defined No_Exception && !defined No_TopoDS_FrozenShape
   #define TopoDS_FrozenShape_Raise_if(CONDITION, MESSAGE) \
-  if (CONDITION) TopoDS_FrozenShape::Raise(MESSAGE);
+  if (CONDITION) throw TopoDS_FrozenShape(MESSAGE);
 #else
   #define TopoDS_FrozenShape_Raise_if(CONDITION, MESSAGE)
 #endif