__evaluate
In this section:
Syntax
__evaluate(string, valuePtr)Parameters
stringExpression string.
valuePtrPointer to a macro variable storing the result.
Return value
Result | Value |
|---|---|
Successful |
|
Unsuccessful |
|
Table 34. __evaluate return values
For use with
All C-SPY drivers.
Description
This macro interprets the input string as an expression and evaluates it. The result is stored in a variable pointed to by valuePtr.
Example
This example assumes that the variable i is defined and has the value 5:
__evaluate("i + 3", &myVar)The macro variable myVar is assigned the value 8.