2011-11-19 03:46:41 +00:00
|
|
|
/*
|
2013-01-03 21:37:59 -06:00
|
|
|
Copyright Redshift Software Inc. 2011-2013
|
2011-11-19 03:46:41 +00:00
|
|
|
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)
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef BOOST_PREDEF_LANGUAGE_STDCPP_H
|
|
|
|
|
#define BOOST_PREDEF_LANGUAGE_STDCPP_H
|
|
|
|
|
|
|
|
|
|
#include <boost/predef/version_number.h>
|
|
|
|
|
#include <boost/predef/make.h>
|
|
|
|
|
|
|
|
|
|
/*`
|
2012-07-15 03:37:23 +00:00
|
|
|
[heading `BOOST_LANG_STDCPP`]
|
2011-11-19 03:46:41 +00:00
|
|
|
|
2011-11-30 05:54:23 +00:00
|
|
|
[@http://en.wikipedia.org/wiki/C%2B%2B Standard C++] language.
|
|
|
|
|
If available, the year of the standard is detected as 0.0.YYYY.
|
|
|
|
|
Because of the way the C++ standardization process works the
|
|
|
|
|
defined version year will not be the commonly known year standard.
|
2011-12-01 04:04:07 +00:00
|
|
|
Specifically the defined versions are:
|
2011-11-30 05:54:23 +00:00
|
|
|
|
|
|
|
|
[table Detected Version Number vs. C++ Standard Year
|
|
|
|
|
[[Detected Version Number] [Standard Year] [C++ Standard]]
|
2013-01-03 21:37:59 -06:00
|
|
|
[[27.11.1] [1998] [ISO/IEC 14882:1998]]
|
|
|
|
|
[[41.12.1] [2011] [ISO/IEC 14882:2011]]
|
2011-11-30 05:54:23 +00:00
|
|
|
]
|
2012-07-15 03:37:23 +00:00
|
|
|
|
|
|
|
|
[table
|
|
|
|
|
[[__predef_symbol__] [__predef_version__]]
|
|
|
|
|
|
2013-01-05 15:31:59 -06:00
|
|
|
[[`____`] [__predef_detection__]]
|
2012-07-15 03:37:23 +00:00
|
|
|
|
2013-01-05 15:31:59 -06:00
|
|
|
[[`____`] [V.R.P]]
|
2012-07-15 03:37:23 +00:00
|
|
|
]
|
2011-11-19 03:46:41 +00:00
|
|
|
*/
|
|
|
|
|
|
2012-07-15 03:37:23 +00:00
|
|
|
#define BOOST_LANG_STDCPP BOOST_VERSION_NUMBER(0,0,0)
|
2011-11-19 03:46:41 +00:00
|
|
|
|
|
|
|
|
#if defined(__cplusplus)
|
2012-07-15 03:37:23 +00:00
|
|
|
# undef BOOST_LANG_STDCPP
|
|
|
|
|
# if (__cplusplus > 100)
|
2013-01-03 21:37:59 -06:00
|
|
|
# define BOOST_LANG_STDCPP BOOST_PREDEF_MAKE_YYYYMM(__cplusplus)
|
2012-07-15 03:37:23 +00:00
|
|
|
# else
|
|
|
|
|
# define BOOST_LANG_STDCPP BOOST_VERSION_NUMBER(0,0,1)
|
|
|
|
|
# endif
|
2011-11-19 03:46:41 +00:00
|
|
|
#endif
|
|
|
|
|
|
2012-07-15 03:37:23 +00:00
|
|
|
#define BOOST_LANG_STDCPP_NAME "Standard C++"
|
|
|
|
|
|
2011-11-19 03:46:41 +00:00
|
|
|
#include <boost/predef/detail/test.h>
|
2012-07-15 03:37:23 +00:00
|
|
|
BOOST_PREDEF_DECLARE_TEST(BOOST_LANG_STDCPP,BOOST_LANG_STDCPP_NAME)
|
|
|
|
|
|
2011-11-19 03:46:41 +00:00
|
|
|
|
|
|
|
|
/*`
|
2012-07-15 03:37:23 +00:00
|
|
|
[heading `BOOST_LANG_STDCPPCLI`]
|
2011-11-19 03:46:41 +00:00
|
|
|
|
2011-11-30 05:54:23 +00:00
|
|
|
[@http://en.wikipedia.org/wiki/C%2B%2B/CLI Standard C++/CLI] language.
|
2013-01-03 21:37:59 -06:00
|
|
|
If available, the year of the standard is detected as YYYY.MM.1.
|
2011-11-19 03:46:41 +00:00
|
|
|
*/
|
|
|
|
|
|
2012-07-15 03:37:23 +00:00
|
|
|
#define BOOST_LANG_STDCPPCLI BOOST_VERSION_NUMBER(0,0,0)
|
2011-11-19 03:46:41 +00:00
|
|
|
|
|
|
|
|
#if defined(__cplusplus_cli)
|
2012-07-15 03:37:23 +00:00
|
|
|
# undef BOOST_LANG_STDCPPCLI
|
|
|
|
|
# if (__cplusplus_cli > 100)
|
2013-01-03 21:37:59 -06:00
|
|
|
# define BOOST_LANG_STDCPPCLI BOOST_PREDEF_MAKE_YYYYMM(__cplusplus_cli)
|
2012-07-15 03:37:23 +00:00
|
|
|
# else
|
|
|
|
|
# define BOOST_LANG_STDCPPCLI BOOST_VERSION_NUMBER(0,0,1)
|
|
|
|
|
# endif
|
2011-11-19 03:46:41 +00:00
|
|
|
#endif
|
|
|
|
|
|
2012-07-15 03:37:23 +00:00
|
|
|
#define BOOST_LANG_STDCPPCLI_NAME "Standard C++/CLI"
|
|
|
|
|
|
2011-11-19 03:46:41 +00:00
|
|
|
#include <boost/predef/detail/test.h>
|
2012-07-15 03:37:23 +00:00
|
|
|
BOOST_PREDEF_DECLARE_TEST(BOOST_LANG_STDCPPCLI,BOOST_LANG_STDCPPCLI_NAME)
|
|
|
|
|
|
2011-11-19 03:46:41 +00:00
|
|
|
|
|
|
|
|
/*`
|
2012-07-15 03:37:23 +00:00
|
|
|
[heading `BOOST_LANG_STDECPP`]
|
2011-11-19 03:46:41 +00:00
|
|
|
|
2011-11-30 05:54:23 +00:00
|
|
|
[@http://en.wikipedia.org/wiki/Embedded_C%2B%2B Standard Embedded C++] language.
|
2011-11-19 03:46:41 +00:00
|
|
|
*/
|
|
|
|
|
|
2012-07-15 03:37:23 +00:00
|
|
|
#define BOOST_LANG_STDECPP BOOST_VERSION_NUMBER(0,0,0)
|
2011-11-19 03:46:41 +00:00
|
|
|
|
|
|
|
|
#if defined(__embedded_cplusplus)
|
2012-07-15 03:37:23 +00:00
|
|
|
# undef BOOST_LANG_STDECPP
|
|
|
|
|
# define BOOST_LANG_STDECPP BOOST_VERSION_NUMBER(0,0,1)
|
2011-11-19 03:46:41 +00:00
|
|
|
#endif
|
|
|
|
|
|
2012-07-15 03:37:23 +00:00
|
|
|
#define BOOST_LANG_STDECPP_NAME "Standard Embedded C++"
|
|
|
|
|
|
2011-11-19 03:46:41 +00:00
|
|
|
#include <boost/predef/detail/test.h>
|
2012-07-15 03:37:23 +00:00
|
|
|
BOOST_PREDEF_DECLARE_TEST(BOOST_LANG_STDECPP,BOOST_LANG_STDECPP_NAME)
|
|
|
|
|
|
2011-11-19 03:46:41 +00:00
|
|
|
|
|
|
|
|
#endif
|