__isMacroSymbolDefined
In this section:
Syntax
__isMacroSymbolDefined(symbol)Parameters
symbolThe name of a C-SPY macro variable or macro function (a string).
Return value
1 if symbol is an existing macro symbol. 0 if symbol is not defined.
For use with
All C-SPY drivers.
Description
This macro identifies whether a string is the name of an existing C-SPY macro symbol (variable or function) or not.
Example
__var someVariable;
...
if (__isMacroSymbolDefined("someVariable"))
someVariable = 42;
else
__message "The someVariable symbol is not defined!";