mirror of
https://github.com/boostorg/log.git
synced 2026-02-18 02:02:14 +00:00
Boost.Log merged to trunk.
[SVN r83860]
This commit is contained in:
47
src/spirit_encoding.cpp
Normal file
47
src/spirit_encoding.cpp
Normal file
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
* Copyright Andrey Semashev 2007 - 2013.
|
||||
* 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)
|
||||
*/
|
||||
/*!
|
||||
* \file spirit_encoding.cpp
|
||||
* \author Andrey Semashev
|
||||
* \date 20.07.2012
|
||||
*
|
||||
* \brief This header is the Boost.Log library implementation, see the library documentation
|
||||
* at http://www.boost.org/libs/log/doc/log.html.
|
||||
*/
|
||||
|
||||
#include <boost/preprocessor/tuple/elem.hpp>
|
||||
#include <boost/preprocessor/seq/for_each.hpp>
|
||||
#include "spirit_encoding.hpp"
|
||||
#include <boost/log/detail/header.hpp>
|
||||
|
||||
namespace boost {
|
||||
|
||||
BOOST_LOG_OPEN_NAMESPACE
|
||||
|
||||
namespace aux {
|
||||
|
||||
#define BOOST_LOG_DEFINE_CHARSET_PARSER(r, charset, parser)\
|
||||
BOOST_LOG_API encoding_specific< spirit::char_encoding::charset >::BOOST_PP_TUPLE_ELEM(2, 0, parser) const&\
|
||||
encoding_specific< spirit::char_encoding::charset >::BOOST_PP_TUPLE_ELEM(2, 1, parser) =\
|
||||
spirit::charset::BOOST_PP_TUPLE_ELEM(2, 1, parser);
|
||||
|
||||
#define BOOST_LOG_DEFINE_CHARSET_PARSERS(charset)\
|
||||
BOOST_PP_SEQ_FOR_EACH(BOOST_LOG_DEFINE_CHARSET_PARSER, charset, BOOST_LOG_CHARSET_PARSERS)
|
||||
|
||||
BOOST_LOG_DEFINE_CHARSET_PARSERS(standard)
|
||||
BOOST_LOG_DEFINE_CHARSET_PARSERS(standard_wide)
|
||||
|
||||
#undef BOOST_LOG_DEFINE_CHARSET_PARSERS
|
||||
#undef BOOST_LOG_DEFINE_CHARSET_PARSER
|
||||
|
||||
} // namespace aux
|
||||
|
||||
BOOST_LOG_CLOSE_NAMESPACE // namespace log
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#include <boost/log/detail/footer.hpp>
|
||||
Reference in New Issue
Block a user