Main Content

addFunction

R2026b

Class: clibgen.LibraryDefinition
Namespace: clibgen

(Not recommended) Add function to library definition

addFunction is not recommended. For more information on updating your code, see Version History.

Syntax

definition = addFunction(libDef,cppsignature,name,value)

Description

definition = addFunction(libDef,cppsignature,name,value) adds a clibgen.FunctionDefinition object to the library definition libDef, where cppsignature is the FunctionDefinition property CPPSignature. The name,value arguments set these FunctionDefinition properties:

  • MATLABName

  • Description

  • DetailedDescription

  • TemplateUniqueName

MATLAB® creates addFunction statements in the library definition files. Publishers can modifying the values of the name,value arguments.

Version History

Introduced in R2019a

collapse all