Keil Logo

GENERAL: COMMENTING OUT MACRO DEFINITIONS


Information in this article applies to:

  • A51 All Versions
  • A166 All Versions

SYMPTOMS

When I write a couple of macro definitions with the second commented out, like this:

%DEFINE (RANGE3)   (16K)         ; Set CS3# Range
; %DEFINE (RANGE3)   (1024K)         ; Set CS3# Range

the second definition is accepted as valid, even if commented out. Is this the correct behavior?

CAUSE

In order to comment out a MACRO definition you must use a Macro comment rather than an assembler comment.

RESOLUTION

The Macro comment has the form

%'

So, in order to comment out a macro definition, place the Macro comment at the start of the definition:

%' %DEFINE (RANGE3)   (1024K)         ; Set CS3# Range

The comment may be terminated either by the end-of-line character or another apostrophe.

MORE INFORMATION

Last Reviewed: Monday, May 15, 2006


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.