Last change
on this file since 44 was
29,
checked in by landauf, 17 years ago
|
updated boost from 1_33_1 to 1_34_1
|
File size:
477 bytes
|
Line | |
---|
1 | // Copyright Joel de Guzman 2002-2004. Distributed under the Boost |
---|
2 | // Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt |
---|
3 | // or copy at http://www.boost.org/LICENSE_1_0.txt) |
---|
4 | // Hello World Example from the tutorial |
---|
5 | // [Joel de Guzman 10/9/2002] |
---|
6 | |
---|
7 | char const* greet() |
---|
8 | { |
---|
9 | return "hello, world"; |
---|
10 | } |
---|
11 | |
---|
12 | #include <boost/python/module.hpp> |
---|
13 | #include <boost/python/def.hpp> |
---|
14 | using namespace boost::python; |
---|
15 | |
---|
16 | BOOST_PYTHON_MODULE(hello) |
---|
17 | { |
---|
18 | def("greet", greet); |
---|
19 | } |
---|
20 | |
---|
Note: See
TracBrowser
for help on using the repository browser.