Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/libs/python/test/crossmod_opaque_b.cpp @ 29

Last change on this file since 29 was 29, checked in by landauf, 17 years ago

updated boost from 1_33_1 to 1_34_1

File size: 708 bytes
Line 
1// Copyright Gottfried Ganßauge 2006.
2// Distributed under the Boost Software License, Version 1.0. (See
3// accompanying file LICENSE_1_0.txt or copy at
4// http://www.boost.org/LICENSE_1_0.txt)
5# include <boost/python/return_opaque_pointer.hpp>
6# include <boost/python/def.hpp>
7# include <boost/python/module.hpp>
8# include <boost/python/return_value_policy.hpp>
9
10typedef struct opaque_ *opaque;
11
12opaque the_op   = ((opaque) 0x47110815);
13
14opaque get() { return the_op; }
15
16BOOST_PYTHON_OPAQUE_SPECIALIZED_TYPE_ID(opaque_)
17
18namespace bpl = boost::python;
19
20BOOST_PYTHON_MODULE(crossmod_opaque_b)
21{
22    bpl::def (
23        "get",
24        &::get,
25        bpl::return_value_policy<bpl::return_opaque_pointer>());
26}
Note: See TracBrowser for help on using the repository browser.