source: NonGTP/Boost/boost/preprocessor/config/config.hpp @ 857

Revision 857, 2.2 KB checked in by igarcia, 19 years ago (diff)
RevLine 
[857]1# /* **************************************************************************
2#  *                                                                          *
3#  *     (C) Copyright Paul Mensonides 2002.
4#  *     Distributed under the Boost Software License, Version 1.0. (See
5#  *     accompanying file LICENSE_1_0.txt or copy at
6#  *     http://www.boost.org/LICENSE_1_0.txt)
7#  *                                                                          *
8#  ************************************************************************** */
9#
10# /* See http://www.boost.org for most recent version. */
11#
12# ifndef BOOST_PREPROCESSOR_CONFIG_CONFIG_HPP
13# define BOOST_PREPROCESSOR_CONFIG_CONFIG_HPP
14#
15# /* BOOST_PP_CONFIG_FLAGS */
16#
17# define BOOST_PP_CONFIG_STRICT() 0x0001
18# define BOOST_PP_CONFIG_IDEAL() 0x0002
19#
20# define BOOST_PP_CONFIG_MSVC() 0x0004
21# define BOOST_PP_CONFIG_MWCC() 0x0008
22# define BOOST_PP_CONFIG_BCC() 0x0010
23# define BOOST_PP_CONFIG_EDG() 0x0020
24# define BOOST_PP_CONFIG_DMC() 0x0040
25#
26# ifndef BOOST_PP_CONFIG_FLAGS
27#    if defined(__SPIRIT_PP__) || defined(__MWERKS__) && __MWERKS__ >= 0x3200
28#        define BOOST_PP_CONFIG_FLAGS() (BOOST_PP_CONFIG_STRICT())
29#    elif defined(__EDG__) || defined(__EDG_VERSION__)
30#        define BOOST_PP_CONFIG_FLAGS() (BOOST_PP_CONFIG_EDG() | BOOST_PP_CONFIG_STRICT())
31#    elif defined(__MWERKS__)
32#        define BOOST_PP_CONFIG_FLAGS() (BOOST_PP_CONFIG_MWCC())
33#    elif defined(__DMC__)
34#        define BOOST_PP_CONFIG_FLAGS() (BOOST_PP_CONFIG_DMC())
35#    elif defined(__BORLANDC__) || defined(__IBMC__) || defined(__IBMCPP__) || defined(__SUNPRO_CC)
36#        define BOOST_PP_CONFIG_FLAGS() (BOOST_PP_CONFIG_BCC())
37#    elif defined(_MSC_VER)
38#        define BOOST_PP_CONFIG_FLAGS() (BOOST_PP_CONFIG_MSVC())
39#    else
40#        define BOOST_PP_CONFIG_FLAGS() (BOOST_PP_CONFIG_STRICT())
41#    endif
42# endif
43#
44# /* BOOST_PP_CONFIG_EXTENDED_LINE_INFO */
45#
46# ifndef BOOST_PP_CONFIG_EXTENDED_LINE_INFO
47#    define BOOST_PP_CONFIG_EXTENDED_LINE_INFO 0
48# endif
49#
50# /* BOOST_PP_CONFIG_ERRORS */
51#
52# ifndef BOOST_PP_CONFIG_ERRORS
53#    ifdef NDEBUG
54#        define BOOST_PP_CONFIG_ERRORS 0
55#    else
56#        define BOOST_PP_CONFIG_ERRORS 1
57#    endif
58# endif
59#
60# endif
Note: See TracBrowser for help on using the repository browser.