~ubuntu-branches/ubuntu/warty/aqsis/warty

« back to all changes in this revision

Viewing changes to boost/boost/preprocessor/debug/line.hpp

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2004-08-24 07:25:04 UTC
  • Revision ID: james.westby@ubuntu.com-20040824072504-zf993vnevvisdsvb
Tags: upstream-0.9.1
ImportĀ upstreamĀ versionĀ 0.9.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# /* **************************************************************************
 
2
#  *                                                                          *
 
3
#  *     (C) Copyright Paul Mensonides 2002.  Permission to copy, use,        *
 
4
#  *     modify, sell, and distribute this software is granted provided       *
 
5
#  *     this copyright notice appears in all copies.  This software is       *
 
6
#  *     provided "as is" without express or implied warranty, and with       *
 
7
#  *     no claim at to its suitability for any purpose.                      *
 
8
#  *                                                                          *
 
9
#  ************************************************************************** */
 
10
#
 
11
# /* See http://www.boost.org for most recent version. */
 
12
#
 
13
# ifndef BOOST_PREPROCESSOR_DEBUG_LINE_HPP
 
14
# define BOOST_PREPROCESSOR_DEBUG_LINE_HPP
 
15
#
 
16
# include <boost/preprocessor/cat.hpp>
 
17
# include <boost/preprocessor/config/config.hpp>
 
18
# include <boost/preprocessor/iteration/iterate.hpp>
 
19
# include <boost/preprocessor/stringize.hpp>
 
20
#
 
21
# /* BOOST_PP_LINE */
 
22
#
 
23
# if BOOST_PP_CONFIG_EXTENDED_LINE_INFO
 
24
#    define BOOST_PP_LINE(line, file) line BOOST_PP_CAT(BOOST_PP_LINE_, BOOST_PP_IS_ITERATING)(file)
 
25
#    define BOOST_PP_LINE_BOOST_PP_IS_ITERATING(file) #file
 
26
#    define BOOST_PP_LINE_1(file) BOOST_PP_STRINGIZE(file BOOST_PP_CAT(BOOST_PP_LINE_I_, BOOST_PP_ITERATION_DEPTH())())
 
27
#    define BOOST_PP_LINE_I_1() [BOOST_PP_FRAME_ITERATION(1)]
 
28
#    define BOOST_PP_LINE_I_2() BOOST_PP_LINE_I_1()[BOOST_PP_FRAME_ITERATION(2)]
 
29
#    define BOOST_PP_LINE_I_3() BOOST_PP_LINE_I_2()[BOOST_PP_FRAME_ITERATION(3)]
 
30
#    define BOOST_PP_LINE_I_4() BOOST_PP_LINE_I_3()[BOOST_PP_FRAME_ITERATION(4)]
 
31
#    define BOOST_PP_LINE_I_5() BOOST_PP_LINE_I_4()[BOOST_PP_FRAME_ITERATION(5)]
 
32
# else
 
33
#    define BOOST_PP_LINE(line, file) line __FILE__
 
34
# endif
 
35
#
 
36
# endif