getDefines

Preprocessor macro definitions from model's build information

Syntax

[macrodefs, identifiers, values]=getDefines(buildinfo, includeGroups, excludeGroups)

includeGroups and excludeGroups are optional.

Arguments

buildinfo

Build information returned by RTW.BuildInfo.

includeGroups (optional)

A character array or cell array of character arrays that specifies groups of macro definitions you want the function to return.

excludeGroups (optional)

A character array or cell array of character arrays that specifies groups of macro definitions you do not want the function to return.

Returns

Preprocessor macro definitions stored in the model's build information. The function returns the macro definitions in three vectors.

VectorDescription
macrodefsComplete macro definitions with -D prefix
identifiersNames of the macros
valuesValues assigned to the macros (anything specified to the right of the first equals sign) ; the default is an empty string ('')

Description

The getDefines function returns preprocessor macro definitions stored in the model's build information. When the function returns a definition, it automatically

Using optional includeGroups and excludeGroups arguments, you can selectively include or exclude groups of definitions the function is to return.

If you choose to specify excludeGroups and omit includeGroups, specify a null string ('') for includeGroups.

Examples

See Also

getCompileFlags, getLinkFlags
Programming a Post Code Generation Command

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS