Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/python/object_call.hpp @ 120:4729c8589274 emscripten-piper
Add piper builds
| author | Chris Cannam |
|---|---|
| date | Fri, 11 Nov 2016 15:49:32 +0000 |
| 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 |
