8.183 -Uname

Removes any initial definition of the specified macro.

The macro name can be either:

  • A predefined macro.

  • A macro specified using the -D option.

Note

Not all compiler predefined macros can be undefined.

Syntax

-Uname

Where:

name

is the name of the macro to be undefined.

Usage

Specifying -Uname has the same effect as placing the text #undef name at the head of each source file.

Restrictions

The compiler defines and undefines macros in the following order:

  1. Compiler predefined macros.

  2. Macros defined explicitly, using -Dname.

  3. Macros explicitly undefined, using -Uname.

Related reference
8.22 -C
8.41 -Dname[(parm-list)][=def]
8.68 -E
8.127 -M
10.155 Predefined macros
Non-ConfidentialPDF file icon PDF versionARM DUI0472J
Copyright © 2010-2013 ARM. All rights reserved.