#if !defined No_Exception && !defined No_Standard_NoMoreObject
#define Standard_NoMoreObject_Raise_if(CONDITION, MESSAGE) \
- if (CONDITION) Standard_NoMoreObject::Raise(MESSAGE);
+ if (CONDITION) throw Standard_NoMoreObject(MESSAGE);
#else
#define Standard_NoMoreObject_Raise_if(CONDITION, MESSAGE)
#endif