Main Content
getFileExtension
Class: coder.make.BuildTool
Namespace: coder.make
Get file extension for named file type in FileExtensions
Syntax
value = h.getFileExtension(name)
Description
gets the file extension of the named file type from value
= h
.getFileExtension(name
)coder.make.BuildTool.FileExtensions
.
Input Arguments
Output 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