Main Content

Header guard prefix

Custom text to prepend to generated header guards

Since R2024a

Model Configuration Pane: Code Generation / Identifiers

Description

Specify custom text to prepend to header guards in the generated code.

Settings

'' (default) | string

Enter text to prepend to header guards in the generated code. If nonempty, the string must start with an underscore or alphabetic character. The string must contain only alphanumeric characters and underscores.

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Programmatic Use

Parameter: HeaderGuardPrefix
Type: character vector
Value: '' or valid string of alphanumeric characters and underscores
Default: ''

Version History

Introduced in R2024a