Predefined Macros |
The following table lists the macros, which are predefined by the
Wave library. Some of these (all except the __LINE__
,
__FILE__
, __BASE_FILE__
, __DATE__
,
__TIME__
, __STDC__, __INCLUDE_LEVEL__
and __cplusplus
macros) may be undefined from the command line of the driver executable
(see the -U option) or through the function remove_macro_definition().
Summary of predefined macros | ||
Name |
|
Undefinable |
__STDC__ |
1 (a decimal constant) |
yes |
__cplusplus |
199711L (a decimal constant), this
is defined in C++ mode only (C99 mode is off) |
no |
__LINE__ |
The line number of the current source line (a decimal constant) |
no |
__FILE__ |
The presumed name of the source file (a character string literal) |
no |
__BASE_FILE__ |
This macro expands to the name of the main input file (a character string literal). This is the source file that was specified during construction of the wave::context template. |
no |
__DATE__ |
The date of translation of the source file (a character
string literal of the form |
no |
__TIME__ |
The time of translation of the source file (a character
string literal of the form "hh:mm:ss" |
no |
__INCLUDE_LEVEL__ |
A decimal integer constant that represents the
depth of nesting in include |
no |
__WAVE__ __SPIRIT_PP__ |
The version of the driver program (a hexadecinal constant of the form 0xMmrr, where 'M' is the major version number, 'm' the minor version number and 'rr' the release number). |
yes |
__WAVE_VERSION__ __SPIRIT_PP_VERSION__ |
The full version number of the driver program (a hexadecimal constant of the form 0xMmrrbbbb, where 'M' is the major version number, 'm' the minor version number, 'rr' the release number and 'bbbb' the build number). |
yes |
__WAVE_VERSION_STR__ __SPIRIT_PP_VERSION_STR__ |
The full version number of the driver program (a character string literal of the form "M.m.rr.bbbb", where 'M' is the major version number, 'm' the minor version number, 'rr' the release number and 'bbbb' the build number). |
yes |
__STDC_VERSION__ |
199901L (a decimal constant), this is defined in C99 and C++0x modes only |
yes |
__STDC_HOSTED__ |
0L (a decimal constant), this is defined in C99 and C++0x modes only |
yes |
__WAVE_HAS_VARIADICS__ |
1 (a decimal constant), this is defined in C++ mode only if variadics and placemarkers are enabled, and it is defined in the C99, C++0x, and C++2A modes |
no |
__WAVE_CONFIG__ |
The configuration information used during the compilation of the Wave library. This is a hexadecimal constant, where each of the bits represents a certain configuration option enabled/disabled during the compilation. You can query this contant using the following macro constants available in the wave_config_constant.hpp file:
|
yes |
Copyright © 2003-2011 Hartmut Kaiser
Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Last updated: Sunday, January 9, 2011 16:12