主要内容

getDirective

Directives 获取命名指令的值

语法

value = h.getDirective(name)

说明

value = h.getDirective(name)Directives 获取命名指令的值

输入参数

全部展开

coder.make.BuildTool 对象的对象句柄,指定为变量。

示例: tool

指令的名称,指定为字符向量。

数据类型: char

输出参量

全部展开

指令的值,指定为字符向量。

数据类型: char

示例

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

-I

版本历史记录

在 R2013a 中推出