Main Content

getDirective

クラス: coder.make.BuildTool
名前空間: coder.make

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 で導入