#define naming

Description

Specify rule for naming #define parameters (defined with storage class Define (Custom)) in generated code.

Category: Code Generation > Identifiers

Settings

Default: None

None

Does not change #define parameter names when creating corresponding identifiers in generated code. Parameter identifiers in the generated code match the parameter names that appear in the model.

Force upper case

Uses uppercase characters when creating identifiers for #define parameter names in the generated code.

Force lower case

Uses lowercase characters when creating identifiers for #define parameter names in the generated code.

Custom M-function

Uses the MATLAB® function specified with the M-function parameter to create identifiers for #define parameter names in the generated code.

Dependencies

  • This parameter appears only for ERT-based targets.

  • This parameter requires an Embedded Coder® license when generating code.

  • Setting this parameter to Custom M-function enables M-function.

  • This parameter must be the same for top-level and referenced models.

Command-Line Information

Parameter: DefineNamingRule
Type: character vector
Value: None | UpperCase | LowerCase | Custom
Default: None

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityForce upper case
EfficiencyNo impact
Safety precautionNo impact

Related Topics