0026937: Eliminate NO_CXX_EXCEPTION macro support
[occt.git] / src / OSD / OSD_Exception_ILLEGAL_INSTRUCTION.hxx
index b9a6501..f529003 100644 (file)
@@ -25,7 +25,7 @@ DEFINE_STANDARD_HANDLE(OSD_Exception_ILLEGAL_INSTRUCTION, OSD_Exception)
 
 #if !defined No_Exception && !defined No_OSD_Exception_ILLEGAL_INSTRUCTION
   #define OSD_Exception_ILLEGAL_INSTRUCTION_Raise_if(CONDITION, MESSAGE) \
-  if (CONDITION) OSD_Exception_ILLEGAL_INSTRUCTION::Raise(MESSAGE);
+  if (CONDITION) throw OSD_Exception_ILLEGAL_INSTRUCTION(MESSAGE);
 #else
   #define OSD_Exception_ILLEGAL_INSTRUCTION_Raise_if(CONDITION, MESSAGE)
 #endif