Opened 12 years ago

Closed 12 years ago

#1798 closed task (fixed)

Support for ModelicaError in ModelicaUtilities.h

Reported by: sjoelund.se Owned by: sjoelund.se
Priority: high Milestone: 1.9.0
Component: Run-time Version:
Keywords: Cc:

Description

ModelicaError(const char*) when invoked should trigger an assertion and cause the simulation to stop.

For this we should unify the assertion/termination to be the same for function and simulation code. It could be as easy as adding a generated assertion handler to the C-code for functions and keeping another copy in the simulation runtime.

Change History (2)

comment:1 Changed 12 years ago by sjoelund.se

  • Owner changed from openmodelicadevelopers@… to sjoelund.se
  • Status changed from new to accepted
  • Summary changed from External C functions should be able to throw assertions to Support for ModelicaError in ModelicaUtilities.h

comment:2 Changed 12 years ago by sjoelund.se

  • Resolution set to fixed
  • Status changed from accepted to closed

Fixed in r12918, which also makes functions in general capable of throwing assertions.

Note: See TracTickets for help on using tickets.