29.12.2014 Views

RealView Compilation Tools Compiler Reference Guide - ARM ...

RealView Compilation Tools Compiler Reference Guide - ARM ...

RealView Compilation Tools Compiler Reference Guide - ARM ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Compiler</strong>-specific Features<br />

Table 4-18 Predefined macros (continued)<br />

Name Value When defined<br />

__TIME__ time Always defined.<br />

__UINTMAX_TYPE__ – In GNU mode. It defines the correct underlying type for the uintmax_t typedef.<br />

__VERSION__ ver When you specify the --gnu option. It is a string that shows the current version<br />

of the GNU mode being used.<br />

_WCHAR_T – In C++ mode, to specify that wchar_t is a keyword.<br />

__WCHAR_TYPE__ – In GNU mode. It defines the correct underlying type for the wchar_t typedef.<br />

__WCHAR_UNSIGNED__ – In GNU mode when you specify the --cpp option. It is defined if and only if<br />

wchar_t is an unsigned type.<br />

__WINT_TYPE__ – In GNU mode. It defines the correct underlying type for the wint_t typedef.<br />

4.8.2 Function names<br />

Table 4-19 lists builtin variables supported by the <strong>ARM</strong> compiler for C and C++.<br />

Table 4-19 Builtin variables<br />

Name<br />

__FUNCTION__<br />

__PRETTY_FUNCTION__<br />

Value<br />

Holds the name of the function as it appears in the source.<br />

__FUNCTION__ is a constant string literal. You cannot use the preprocessor to join the<br />

contents to other text to form new tokens.<br />

Holds the name of the function as it appears pretty printed in a language-specific fashion.<br />

__PRETTY_FUNCTION__ is a constant string literal. You cannot use the preprocessor to join<br />

the contents to other text to form new tokens.<br />

<strong>ARM</strong> DUI 0348A Copyright © 2007, 2010 <strong>ARM</strong> Limited. All rights reserved. 4-107<br />

Non-Confidential

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!