ARM Technical Support Knowledge Articles

COMMENTING OUT MACRO DEFINITIONS

Applies to: General Topics

Answer


Information in this article applies to:


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

Article last edited on: 2006-05-15 08:57:58

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential