Skip to content

Commit

Permalink
Handle error stage ERROR_EVENTHANDLING
Browse files Browse the repository at this point in the history
  • Loading branch information
lochel authored and OpenModelica-Hudson committed Jul 18, 2016
1 parent 96282dd commit 2216479
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SimulationRuntime/c/simulation/simulation_omc_assert.c
Expand Up @@ -94,6 +94,10 @@ static void va_omc_assert_simulation_withEquationIndexes(threadData_t *threadDat
}
longjmp(*threadData->simulationJumpBuffer,1);
break;
case ERROR_EVENTHANDLING:
va_errorStreamPrintWithEquationIndexes(LOG_ASSERT, 0, indexes, msg, args);
longjmp(threadData->globalJumpBuffer ? *threadData->globalJumpBuffer : *threadData->mmc_jumper, 1);
break;
case ERROR_OPTIMIZE:
default:
va_errorStreamPrintWithEquationIndexes(LOG_ASSERT, 0, indexes, msg, args);
Expand Down

0 comments on commit 2216479

Please sign in to comment.