Maximum identifier length - Maximum number of characters in generated identifiers - MATLAB (original) (raw)

Main Content

Maximum number of characters in generated identifiers

Description

App Configuration Pane: Code Appearance

Configuration Objects: coder.CodeConfig | coder.EmbeddedCodeConfig

maximum number of characters in generated function, type definition, and variable names. To avoid truncation of identifiers by the target C/C++ compiler, specify a value that matches the maximum identifier length of the target C/C++ compiler.

This parameter does not apply to exported identifiers, such as the generated names for entry-point functions or emxArray API functions. If the length of an exported identifier exceeds the maximum identifier length of the target C/C++ compiler, the target C/C++ compiler truncates the exported identifier.

Settings

31 | 1024 | positive integer

Maximum identifier length, specified as a positive integer. If the**Language** parameter is set toC, the default value is 31. If the Language parameter is set toC++, the default value is1024.

Programmatic Use

**Property:**MaxIdLength
Values: 31 |1024 positive integer
Default: 31 ifTargetLang is set to 'C',1024 if TargetLang is set to'C++'.

Version History

Introduced in R2011a