Skip to main content

IAR Embedded Workbench for Arm 9.70.x

__isMacroSymbolDefined

In this section:
Syntax
__isMacroSymbolDefined(symbol)
Parameters
symbol

The 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!";