coder.reservedName
Description
coder.reservedName(
reserves the identifiers name1,name2,...,nameN
)name1,name2,...,nameN
for use in your custom
C/C++ code to integrate with your generated code. If you place this directive in your
MATLAB® code intended for code generation, the generated code does not contain the
identifiers name1,name2,...,nameN
, thereby preventing name collision
with your custom code.
Examples
Input Arguments
Tips
The following code generation setting provides the same functionality as
coder.reservedName
. To specify identifier names that the generated code does not use:In a code configuration object, set the
ReservedNameArray
propertyAlternatively, in the MATLAB Coder™ app, on the Code Appearance tab, set the Reserved names parameter
Extended Capabilities
Version History
Introduced in R2020b