__expandVar
In this section:
Syntax
__expandVar(argvar)
Parameters
argvarA string that contains one or more predefined or custom argument variables for paths or arguments, for example an installation directory or an argument to a tool.
Return value
Result | Value |
|---|---|
Successful | The string, with the argument variables expanded. |
Unsuccessful | If any of the variables in the argument are not recognized, the return value is an empty string. |
Table 35. __expandVar return values
For use with
All C-SPY drivers.
Description
Expands any Embedded Workbench argument variables—such as $PROJ_DIR$ or $PROJ_FNAME$—contained in a string argument.
Example
__expandVar("$PROJ_DIR$")returns, for example,
D:\Documents\myProject
and
__expandVar("$TOOLKIT_DIR$\\projects\\$PROJ_FNAME$.txt")returns, for example,
D:\Applications\IAR\Embedded Workbench\projects\myproj.txt