sl@0
|
1 |
// Copyright David Abrahams 2002.
|
sl@0
|
2 |
// Distributed under the Boost Software License, Version 1.0. (See
|
sl@0
|
3 |
// accompanying file LICENSE_1_0.txt or copy at
|
sl@0
|
4 |
// http://www.boost.org/LICENSE_1_0.txt)
|
sl@0
|
5 |
#ifndef SELF_DWA2002531_HPP
|
sl@0
|
6 |
# define SELF_DWA2002531_HPP
|
sl@0
|
7 |
|
sl@0
|
8 |
# include <boost/python/detail/prefix.hpp>
|
sl@0
|
9 |
|
sl@0
|
10 |
namespace boost { namespace python {
|
sl@0
|
11 |
|
sl@0
|
12 |
#define BOOST_PYTHON_SELF_IS_CLASS
|
sl@0
|
13 |
|
sl@0
|
14 |
// Sink self_t into its own namespace so that we have a safe place to
|
sl@0
|
15 |
// put the completely general operator templates which operate on
|
sl@0
|
16 |
// it. It is possible to avoid this, but it turns out to be much more
|
sl@0
|
17 |
// complicated and finally GCC 2.95.2 chokes on it.
|
sl@0
|
18 |
namespace self_ns
|
sl@0
|
19 |
{
|
sl@0
|
20 |
# ifndef BOOST_PYTHON_SELF_IS_CLASS
|
sl@0
|
21 |
enum self_t { self };
|
sl@0
|
22 |
# else
|
sl@0
|
23 |
struct self_t {};
|
sl@0
|
24 |
extern BOOST_PYTHON_DECL self_t self;
|
sl@0
|
25 |
# endif
|
sl@0
|
26 |
}
|
sl@0
|
27 |
|
sl@0
|
28 |
using self_ns::self_t;
|
sl@0
|
29 |
using self_ns::self;
|
sl@0
|
30 |
|
sl@0
|
31 |
}} // namespace boost::python
|
sl@0
|
32 |
|
sl@0
|
33 |
#endif // SELF_DWA2002531_HPP
|