registerCPromotableMacroEntry
Create promotable code replacement macro entry based on specified parameters and
register in code replacement table (for abs function replacement
only)
Description
creates a promotable macro entry based on specified parameters and registers the entry
in the code replacement table. A promotable macro entry promotes the output data type
based on the target word size.entry = registerCPromotableMacroEntry(hTable,priority,numInputs,functionName,inputType,implementationName,outputType,headerFile,genCallback,genFileName)
This function provides a quick way to create and register a promotable macro entry. This function can be used only if your code replacement function entry meets the following conditions:
The input arguments are of the same type.
The input argument names and the return argument name follow the default Simulink® naming convention:
For input argument names,
u1,u2, ...,unFor return argument,
y1
Use this function only for abs function replacement. For other
functions supported for replacement, use
registerCFunctionEntry.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2007b