7.163 -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
7.18 -C
7.31 -Dname[(parm-list)][=def]
7.54 -E
7.109 -M
9.152 Predefined macros
Non-ConfidentialPDF file icon PDF versionARM DUI0375F
Copyright © 2007, 2008, 2011, 2012, 2014 ARM. All rights reserved.