Main Content

addFunction

Class: clibgen.LibraryDefinition
Package: clibgen

Add function to library definition

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:

MATLAB® creates addFunction statements in .mlx library definition files. Publishers can modifying the values of the name,value arguments. For more information, see Define MATLAB Interface for C++ Library. For information about using Description and DetailedDescription, see Publish Help Text for MATLAB Interface to C++ Library. For information about naming template functions, see Use Function and Member Function Templates.

Introduced in R2019a