Ticket #2909: typetypo.cpp
File typetypo.cpp, 325 bytes (added by , 14 years ago) |
---|
Line | |
---|---|
1 | #include <string> |
2 | #include <boost/python.hpp> |
3 | |
4 | long long return_longlong() |
5 | { |
6 | return 1099511627776LL; |
7 | } |
8 | |
9 | std::wstring return_wstring() |
10 | { |
11 | return L"abcde"; |
12 | } |
13 | |
14 | BOOST_PYTHON_MODULE(typetypo_ext) |
15 | { |
16 | using namespace boost::python; |
17 | def("return_longlong", return_longlong); |
18 | def("return_wstring", return_wstring); |
19 | } |