]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/python/example/tutorial/hello.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / python / example / tutorial / hello.cpp
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 #include <boost/python/module.hpp>
8 #include <boost/python/def.hpp>
9
10 char const* greet()
11 {
12 return "hello, world";
13 }
14
15 BOOST_PYTHON_MODULE(hello_ext)
16 {
17 using namespace boost::python;
18 def("greet", greet);
19 }
20