Main Content
addFileExtension
Class: coder.make.BuildTool
Namespace: coder.make
Add new file extension entry to FileExtensions
Syntax
h.addFileExtension(name,buildItemHandle)
Description
creates a named extension, assigns a h
.addFileExtension(name
,buildItemHandle
)coder.make.BuildItem
object to it, and adds it to coder.make.BuildTool.FileExtensions
.
Input Arguments
Examples
tc = coder.make.ToolchainInfo; tool = tc.getBuildTool('C Compiler'); blditm = coder.make.BuildItem('CD','.cd')
bldtm = Macro : CD Value : .cd
tool.addFileExtension('SourceX',blditm) value = tool.getFileExtension('SourceX')
value = .cd
tool.setFileExtension('SourceX','.ef') value = tool.getFileExtension('SourceX')
value = .ef
Version History
Introduced in R2013a