Constant macros - Customize generated constant macro identifiers - MATLAB (original) (raw)

Main Content

Customize generated constant macro identifiers

Model Configuration Pane: Code Generation / Identifiers

Description

Customize generated constant macro identifiers. Constant macros appear in the generated code for parameters that use the storage class Auto when you set > > to Inlined and > > to Macros.

Dependencies

This parameter:

Settings

$R$N$M (default) | string

Enter a macro that specifies whether, and in what order, certain text is to be included in the generated identifier. The macro can include a combination of the following format tokens.

Token Description
$M Insert name-mangling text if required to avoid naming collisions.Required.
$N Insert name of object (block, signal or signal object, state, parameter or parameter object) for which identifier is being generated.
$R Insert root model name into identifier, replacing unsupported characters with the underscore (_) character.Required for model referencing.
U∣InserttextthatyouspecifyfortheU Insert text that you specify for the UInserttextthatyouspecifyfortheU token. Use the Custom token text parameter to specify this text.

Note

This option does not apply to objects (such as signals and parameters) that have a storage class other than Auto (such asImportedExtern or ExportedGlobal).

Tips

Application Setting
Debugging No impact
Traceability Use default
Efficiency No impact
Safety precaution No recommendation

Programmatic Use

Parameter: CustomSymbolStrMacro
Type: character vector
Value: valid combination of tokens
Default: RRRN$M

Version History

Introduced in R2006b