0026937: Eliminate NO_CXX_EXCEPTION macro support
[occt.git] / src / Standard / Standard_Overflow.hxx
index ac0f675..7e67d36 100644 (file)
@@ -27,7 +27,7 @@ DEFINE_STANDARD_HANDLE(Standard_Overflow, Standard_NumericError)
 
 #if !defined No_Exception && !defined No_Standard_Overflow
   #define Standard_Overflow_Raise_if(CONDITION, MESSAGE) \
-  if (CONDITION) Standard_Overflow::Raise(MESSAGE);
+  if (CONDITION) throw Standard_Overflow(MESSAGE);
 #else
   #define Standard_Overflow_Raise_if(CONDITION, MESSAGE)
 #endif