Main Content
coder.make.BuildConfiguration.isOption
Class: coder.make.BuildConfiguration
Namespace: coder.make
Determine if option exists
Syntax
OutputValue = isOption(OptionName)
Description
returns OutputValue
= isOption(OptionName
)'1'
(true) if the specified option exists. Otherwise, it returns
'0'
(false).
Input Arguments
Output Arguments
Examples
Using the Option-Related Methods Interactively
tc = coder.make.ToolchainInfo; cfg = tc.getBuildConfiguration('Faster Builds'); cfg.isOption('X Compiler')
ans = 0
bi = coder.make.BuildItem('WV','wrongvalue')
bi = Macro : WV Value : wrongvalue
cfg.addOption('X Compiler',bi); value = cfg.getOption('X Compiler')
value = Macro : WV Value : wrongvalue
cfg.setOption('X Compiler','rightvalue'); value = cfg.getOption('X Compiler')
value = Macro : WV Value : rightvalue
Version History
Introduced in R2013a