coder.reservedName
Generate code that does not use specified identifier names
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 Reserved names parameter provides the same functionality as
coder.reservedName.
Extended Capabilities
Version History
Introduced in R2020b