Created
October 15, 2015 04:59
-
-
Save BradNeuberg/5ce3da0e1fef7e18db0d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <boost/python.hpp> | |
using namespace std; | |
int helloworld() | |
{ | |
return 10; | |
} | |
BOOST_PYTHON_MODULE(test_boost) | |
{ | |
boost::python::def("helloworld", helloworld); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment