Contenido principal

Data type replacement

Data type replacement in generated code

Description

App Configuration Pane: Code Appearance

Configuration Objects: coder.CodeConfig | coder.EmbeddedCodeConfig

The Data type replacement parameter specifies whether the generated code uses built-in C data types, C data types with fixed-width integers, or type definitions from the MathWorks® header file rtwtypes.h.

Settings

Use built-in C data types

The code generator uses built-in C data types. This value is the default value.

Use C data types with fixed-width integers

The code generator uses data types from the C/C++ language standards, which include definitions from cstdint and stdint.h.

Use coder typedefs

The code generator uses predefined data types from rtwtypes.h.

Programmatic Use

Property: DataTypeReplacement
Values: 'CBuiltIn' | 'CoderTypeDefs' | 'CDataTypesFixedWidth'
Default: 'CBuiltIn'

Version History

Introduced in R2013b

expand all