Class: coder.make.ToolchainInfo
Package: coder.make
Add intrinsic macro to Macros
h.addIntrinsicMacros(intrnsc_macroname)
adds
an intrinsic macro to h
.addIntrinsicMacros(intrnsc_macroname
)Macros
. The value of the intrinsic
macro is defined by a build tool, not by ToolchainInfo or your MathWorks® software.
h.addIntrinsicMacros('GCCROOT') h.getMacro('GCCROOT')
ans = []
h.removeIntrinsicMacros('GCCROOT') h.getMacro('GCCROOT')
The value of intrinsic macros are intentionally not declared
in ToolchainInfo
. The value of the intrinsic macro
is defined by the build tools in the toolchain, outside the scope
of your MathWorks software.
During the software build process, your MathWorks software inserts intrinsic macros into a build artifact, such as a makefile, without altering their form. During the build process, the build artifact passes the intrinsic macros to the build tools in the toolchain. The build tools interpret the macros based on their own internal definitions.
The validate
method does not validate the intrinsic
macros.
Because intrinsic macros have undeclared values, they remain unchanged in the generated code, where they can be used and interpreted by the software build toolchain. In contrast, ordinary macros are replaced by their assigned values when you create them.