#if !defined No_Exception && !defined No_Standard_RangeError
#define Standard_RangeError_Raise_if(CONDITION, MESSAGE) \
- if (CONDITION) Standard_RangeError::Raise(MESSAGE);
+ if (CONDITION) throw Standard_RangeError(MESSAGE);
#else
#define Standard_RangeError_Raise_if(CONDITION, MESSAGE)
#endif