annotate DEPENDENCIES/generic/include/boost/python/object_call.hpp @ 133:4acb5d8d80b6
tip
Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author |
Chris Cannam |
date |
Tue, 30 Jul 2019 12:25:44 +0100 |
parents |
2665513ce2d3 |
children |
|
rev |
line source |
Chris@16
|
1 # if !defined(BOOST_PYTHON_SYNOPSIS)
|
Chris@16
|
2 # // Copyright David Abrahams 2002.
|
Chris@16
|
3 # // Distributed under the Boost Software License, Version 1.0. (See
|
Chris@16
|
4 # // accompanying file LICENSE_1_0.txt or copy at
|
Chris@16
|
5 # // http://www.boost.org/LICENSE_1_0.txt)
|
Chris@16
|
6
|
Chris@16
|
7 # if !defined(BOOST_PP_IS_ITERATING)
|
Chris@16
|
8 # error Boost.Python - do not include this file!
|
Chris@16
|
9 # endif
|
Chris@16
|
10
|
Chris@16
|
11 # define N BOOST_PP_ITERATION()
|
Chris@16
|
12
|
Chris@16
|
13 template <BOOST_PP_ENUM_PARAMS_Z(1, N, class A)>
|
Chris@16
|
14 typename detail::dependent<object, A0>::type
|
Chris@16
|
15 operator()(BOOST_PP_ENUM_BINARY_PARAMS_Z(1, N, A, const& a)) const
|
Chris@16
|
16 {
|
Chris@16
|
17 typedef typename detail::dependent<object, A0>::type obj;
|
Chris@16
|
18 U const& self = *static_cast<U const*>(this);
|
Chris@16
|
19 return call<obj>(get_managed_object(self, tag), BOOST_PP_ENUM_PARAMS_Z(1, N, a));
|
Chris@16
|
20 }
|
Chris@16
|
21
|
Chris@16
|
22 # undef N
|
Chris@16
|
23 # endif // BOOST_PYTHON_SYNOPSIS
|