Brian Silverman | f27e085 | 2018-08-04 23:56:45 -0700 | [diff] [blame^] | 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_DEBUG_LINE_HPP |
| 13 | # define BOOST_PREPROCESSOR_DEBUG_LINE_HPP |
| 14 | # |
| 15 | # include <boost/preprocessor/cat.hpp> |
| 16 | # include <boost/preprocessor/config/config.hpp> |
| 17 | # include <boost/preprocessor/iteration/iterate.hpp> |
| 18 | # include <boost/preprocessor/stringize.hpp> |
| 19 | # |
| 20 | # /* BOOST_PP_LINE */ |
| 21 | # |
| 22 | # if BOOST_PP_CONFIG_EXTENDED_LINE_INFO |
| 23 | # define BOOST_PP_LINE(line, file) line BOOST_PP_CAT(BOOST_PP_LINE_, BOOST_PP_IS_ITERATING)(file) |
| 24 | # define BOOST_PP_LINE_BOOST_PP_IS_ITERATING(file) #file |
| 25 | # define BOOST_PP_LINE_1(file) BOOST_PP_STRINGIZE(file BOOST_PP_CAT(BOOST_PP_LINE_I_, BOOST_PP_ITERATION_DEPTH())()) |
| 26 | # define BOOST_PP_LINE_I_1() [BOOST_PP_FRAME_ITERATION(1)] |
| 27 | # define BOOST_PP_LINE_I_2() BOOST_PP_LINE_I_1()[BOOST_PP_FRAME_ITERATION(2)] |
| 28 | # define BOOST_PP_LINE_I_3() BOOST_PP_LINE_I_2()[BOOST_PP_FRAME_ITERATION(3)] |
| 29 | # define BOOST_PP_LINE_I_4() BOOST_PP_LINE_I_3()[BOOST_PP_FRAME_ITERATION(4)] |
| 30 | # define BOOST_PP_LINE_I_5() BOOST_PP_LINE_I_4()[BOOST_PP_FRAME_ITERATION(5)] |
| 31 | # else |
| 32 | # define BOOST_PP_LINE(line, file) line __FILE__ |
| 33 | # endif |
| 34 | # |
| 35 | # endif |