Main Content

getDirective

Class: target.BuildTool
Namespace: target

Search for directive

Since R2023a

Syntax

directiveObject = myBuildTool.getDirective(directiveName)

Description

directiveObject = myBuildTool.getDirective(directiveName) searches for the specified directive in the Directives property of the target.BuildTool object and returns a target.BaseDirective object.

Input Arguments

expand all

Name of directive.

Example: objectName = cCompiler.getDirective('CommandFile');

Output Arguments

expand all

target.BaseDirective object that contains the directive.

Version History

Introduced in R2023a