Main Content

getCommand

Class: coder.make.BuildTool
Namespace: coder.make

Get build tool command

Syntax

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

Description

c_out = h.getCommand returns the value of the coder.make.BuildTool.Command property.

c_out = h.getCommand('value') also returns the value of coder.make.BuildTool.Command.

c_out = h.getCommand('macro') returns the macro name of coder.make.BuildTool.Command.

Input Arguments

expand all

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

Example: tool

Gets the command value.

Gets the command macro.

Output Arguments

expand all

The command value or macro of the build tool, returned as a scalar.

Data Types: char

Examples

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

Version History

Introduced in R2013a

See Also