getPath
在 Path 中获取编译工具的路径和宏
语法
btpath = h.getPath
btmacro = h.getPath('macro')
说明
提示
如果系统命令环境为编译工具指定路径变量,则路径的值不需要由 BuildTool 对象指定。
输入参数
输出参量
示例
输入以下行:
tc = coder.make.ToolchainInfo;
tool = tc.getBuildTool('C Compiler');
tool.getPath
ans =
''tool.getPath('macro')
ans = CC_PATH
tool.setPath('/gcc')
tool.Pathans = Macro : CC_PATH Value : /gcc
版本历史记录
在 R2013a 中推出