Opened 13 years ago
Closed 13 years ago
#1798 closed task (fixed)
Support for ModelicaError in ModelicaUtilities.h
| Reported by: | Martin Sjölund | Owned by: | Martin Sjölund | 
|---|---|---|---|
| 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 by , 13 years ago
| Owner: | changed from to | 
|---|---|
| Status: | new → accepted | 
| Summary: | External C functions should be able to throw assertions → Support for ModelicaError in ModelicaUtilities.h | 
comment:2 by , 13 years ago
| Resolution: | → fixed | 
|---|---|
| Status: | accepted → closed | 
  Note:
 See   TracTickets
 for help on using tickets.
    
Fixed in r12918, which also makes functions in general capable of throwing assertions.