• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 
2 // Copyright (C) 2009-2012 Lorenzo Caminiti
3 // Distributed under the Boost Software License, Version 1.0
4 // (see accompanying file LICENSE_1_0.txt or a copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
6 // Home at http://www.boost.org/libs/local_function
7 
8 #ifndef BOOST_LOCAL_FUNCTION_DETAIL_PP_LINE_COUNTER_HPP_
9 #define BOOST_LOCAL_FUNCTION_DETAIL_PP_LINE_COUNTER_HPP_
10 
11 #include <boost/config.hpp>
12 
13 // PUBLIC //
14 
15 // MSVC has problems expanding __LINE__ so use (the non standard) __COUNTER__.
16 #ifdef BOOST_MSVC
17 #   define BOOST_LOCAL_FUNCTION_DETAIL_PP_LINE_COUNTER __COUNTER__
18 #else
19 #   define BOOST_LOCAL_FUNCTION_DETAIL_PP_LINE_COUNTER __LINE__
20 #endif
21 
22 #endif // #include guard
23 
24