Main Content

getDirective

Class: coder.make.BuildTool
Package: coder.make

Get value of named directive from Directives

Syntax

value = h.getDirective(name)

Description

value = h.getDirective(name) gets the value of the named directive from Directives

Input Arguments

expand all

Object handle for a coder.make.BuildTool object, specified as a variable.

Example: tool

Name of directive, specified as a character vector.

Data Types: char

Output Arguments

expand all

Value of directive, specified as a character vector.

Data Types: char

Examples

tc = coder.make.ToolchainInfo;
tool = tc.getBuildTool('C Compiler');
tool.addDirective('IncludeSearchPath','-O');
tool.setDirective('IncludeSearchPath','-I');
tool.getDirective('IncludeSearchPath')
ans  = 

-I