Skip to content

Instantly share code, notes, and snippets.

@sztomi
Created March 5, 2014 12:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sztomi/9366176 to your computer and use it in GitHub Desktop.
Save sztomi/9366176 to your computer and use it in GitHub Desktop.
Test
#include <boost/python.hpp>
#include "textcomponent.h"
using namespace boost::python;
BOOST_PYTHON_MODULE(CodegenExample)
{
class_<TextComponent>("TextComponent")
.def("text", &TextComponent::text)
.def("setText", &TextComponent::setText)
;
}
void init_bindings()
{
Py_Initialize();
initCodegenExample();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment