1 # /* **************************************************************************
\r
3 # * (C) Copyright Paul Mensonides 2002.
\r
4 # * Distributed under the Boost Software License, Version 1.0. (See
\r
5 # * accompanying file LICENSE_1_0.txt or copy at
\r
6 # * http://www.boost.org/LICENSE_1_0.txt)
\r
8 # ************************************************************************** */
\r
10 # /* See http://www.boost.org for most recent version. */
\r
12 # ifndef BOOST_PREPROCESSOR_DEBUG_LINE_HPP
\r
13 # define BOOST_PREPROCESSOR_DEBUG_LINE_HPP
\r
15 # include <boost/preprocessor/cat.hpp>
\r
16 # include <boost/preprocessor/config/config.hpp>
\r
17 # include <boost/preprocessor/iteration/iterate.hpp>
\r
18 # include <boost/preprocessor/stringize.hpp>
\r
20 # /* BOOST_PP_LINE */
\r
22 # if BOOST_PP_CONFIG_EXTENDED_LINE_INFO
\r
23 # define BOOST_PP_LINE(line, file) line BOOST_PP_CAT(BOOST_PP_LINE_, BOOST_PP_IS_ITERATING)(file)
\r
24 # define BOOST_PP_LINE_BOOST_PP_IS_ITERATING(file) #file
\r
25 # define BOOST_PP_LINE_1(file) BOOST_PP_STRINGIZE(file BOOST_PP_CAT(BOOST_PP_LINE_I_, BOOST_PP_ITERATION_DEPTH())())
\r
26 # define BOOST_PP_LINE_I_1() [BOOST_PP_FRAME_ITERATION(1)]
\r
27 # define BOOST_PP_LINE_I_2() BOOST_PP_LINE_I_1()[BOOST_PP_FRAME_ITERATION(2)]
\r
28 # define BOOST_PP_LINE_I_3() BOOST_PP_LINE_I_2()[BOOST_PP_FRAME_ITERATION(3)]
\r
29 # define BOOST_PP_LINE_I_4() BOOST_PP_LINE_I_3()[BOOST_PP_FRAME_ITERATION(4)]
\r
30 # define BOOST_PP_LINE_I_5() BOOST_PP_LINE_I_4()[BOOST_PP_FRAME_ITERATION(5)]
\r
32 # define BOOST_PP_LINE(line, file) line __FILE__
\r