Main Content

getCommand

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

ビルド ツール コマンドの取得

構文

c_out = h.getCommand
c_out = h.getCommand('value')
c_out = h.getCommand('macro')

説明

c_out = h.getCommandcoder.make.BuildTool.Command プロパティの値を返します。

c_out = h.getCommand('value')coder.make.BuildTool.Command の値も返します。

c_out = h.getCommand('macro')coder.make.BuildTool.Command のマクロ名を返します。

入力引数

すべて展開する

coder.make.BuildToolオブジェクトのオブジェクト ハンドル。変数で指定します。

例: tool

コマンドの値を取得します。

コマンド マクロを取得します。

出力引数

すべて展開する

ビルド ツールのコマンドの値またはコマンド マクロ。スカラーで返されます。

データ型: char

tc = coder.make.ToolchainInfo;
btl = tc.getBuildTool('C Compiler');
btl.getCommand
ans  = 

icl
btl.getCommand('value')
ans  = 

icl
c_out = btl.getCommand('macro')
c_out  = 

CC

バージョン履歴

R2013a で導入