coder.inlineCall
Description
evaluates out
= coder.inlineCall(functionCall
)functionCall
and inlines the called function in the generated
code. The functionCall
can take one or more input arguments and can
return a single output. Use coder.inlineCall
in your MATLAB® code to replace the function call with the body of the called function in the
generated code.
Inlining eliminates the overhead of a function call and can create opportunities for
further optimization of the generated C/C++ code. However, inlining can generate larger,
more complex C/C++ code. The coder.inlineCall
function overrides
coder.inline
directives in the called function.
The coder.inlineCall
function does not support the inlining of:
Recursive functions
Functions that contain
parfor
-loopsFunctions called from
parfor
-loops
calls the function with handle [out1,...,outN]
= coder.inlineCall(handle
,arg1,...,argN
)handle
, which can have one or more input
arguments, and inlines this function in the generated code. The specified function can have
more than one output.
Examples
Input Arguments
Extended Capabilities
Version History
Introduced in R2024a