Run-time Diagnostics - HACKT CHPSIM Manual
Description: HACKT CHPSIM Manual

Next: chpsim-function example, Previous: Run-time Module Loading, Up: Extending simulation

### 4.4 Run-time Diagnostics

`chpsim` performs some run-time checks on the dynamically loaded functions when they are called. Run-time errors will occur under any of the following conditions:

- If a function is called but yet unbound
- If function name-collision occurs while loading modules
- A function is passed an argument with the wrong type
- A function is passed too few arguments
- The called function throws an exception, or calls `abort` or `terminate`

Note that passing too many arguments does not trigger an error, the excess arguments are simply dropped.