Main Content

addFunctionType

Class: clibgen.LibraryDefinition
Package: clibgen

Add function type to library definition

Syntax

definition = addFunctionType(libDef,cppsignature,mlname,name,value)

Description

definition = addFunctionType(libDef,cppsignature,mlname,name,value) adds a function type with cppsignature to the library definition libDef. The name,value arguments set these clibgen.FunctionTypeDefinition properties:

MATLAB® creates addFunctionType 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, see Publish Help Text for MATLAB Interface to C++ Library.

Introduced in R2021a