10.4.2. Macro body

The macro body consists of the source lines of the macro and optional formal arguments.

The syntax of a macro body is as follows:




defines variables used locally in the macro body.

Formal arguments can be used throughout the macro body. These arguments are later replaced by the values of the actual arguments in the macro call.

You can use debugger commands in the macro body. If used, they must be enclosed by dollar signs ($) and end in a semi-colon (;), for example:

$printf “value=%d\n”,var1$;

You can also use macro arguments and local variables in RealView Debugger commands.

Copyright © 2003, 2004 ARM Limited. All rights reserved.ARM DUI 0234B