Main Content

Generate run-time error checks

Run-time error detection and reporting in generated code

Description

App Configuration Pane: Debugging

Configuration Objects: coder.CodeConfig | coder.EmbeddedCodeConfig

Control run-time error detection and reporting in the generated C/C++ code. If you select the Generate run-time error checks check box, the generated code checks for errors such as out-of-bounds array indexing.

The error reporting software uses fprintf to write error messages to stderr. It uses abort to terminate the application. If fprintf and abort are not available, you must provide them. The abort function abruptly terminates the program. If your system supports signals, you can catch the abort signal (SIGABRT) so that you can control the program termination.

Error messages are in English.

Settings

Off

The generated code does not check for errors such as out-of-bounds array indexing. This value is the default value.

On

The generated code checks for errors such as out-of-bounds array indexing.

Programmatic Use

Property: RuntimeChecks
Values: false | true
Default: false

Version History

Introduced in R2015b