]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | [/ |
2 | (C) Copyright Edward Diener 2011-2015 | |
3 | Distributed under the Boost Software License, Version 1.0. | |
4 | (See accompanying file LICENSE_1_0.txt or copy at | |
5 | http://www.boost.org/LICENSE_1_0.txt). | |
6 | ] | |
7 | ||
8 | [section:vmd_internal_macros Controlling internal usage] | |
9 | ||
10 | VMD has a few object-like macros which the end-user of the library can use | |
11 | to determine or change the way variadic macros are used in the library. | |
12 | ||
13 | The macro BOOST_PP_VARIADICS is part of the Boost PP library, not part of VMD. | |
14 | It is used to denote whether variadic data support exists for the particular compiler | |
15 | the end-user is using. VMD also uses this macro to determine whether variadic | |
16 | data support exists. An end-user of VMD can use this macro in his own design | |
17 | to determine whether or not variadic macros are supported. Furthermore | |
18 | an end-user of VMD can set this macro to 0 or non-zero, before including | |
19 | a VMD header file, to force VMD to treat the particular compiler being | |
20 | used as not supporting or supporting variadic macros. If a compiler does | |
21 | not support variadic macro none of the macros in VMD are defined. | |
22 | ||
23 | The macro BOOST_VMD_ASSERT_DATA controls whether or not an assert macro | |
24 | will check its data. The default is that in compiler debug mode it will check the | |
25 | data while in compiler release mode it will not check its data. The end-user can | |
26 | change this by setting the macro to 0 to not check the data, or non-zero to check | |
27 | the data, before including a VMD header file, or check the value if necessary after | |
28 | including a VMD header file. | |
29 | ||
30 | [endsect] |