Coder typedefs compatibility
Option to force generation of rtwtypes.h
Since R2023a
Model Configuration Pane: Code Generation / Data Type Replacement
Description
If you set Data type replacement to Use C data types with
fixed-width integers
, the generated code uses data types from the C99
language standard and does not require rtwtypes.h
definitions. By
default, the code generator does not create rtwtypes.h
. If you use
custom code that requires Simulink®
Coder™ data type definitions, select the Coder typedefs
compatibility check box to force the generation of
rtwtypes.h
.
Dependencies
To enable this parameter, set Data type replacement to Use C data types with fixed-width integers
.
Settings
off
(default) | on
on
Generate
rtwtypes.h
.off
Do not generate
rtwtypes.h
.
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | No impact |
Programmatic Use
Parameter: CoderTypedefsCompatibility |
Type: character vector |
Value: 'on' | 'off' |
Default: 'off' |
Version History
Introduced in R2023a