ultimatepp/bazaar/BoostPyTest/world.cpp
kohait d4d3d7f8ad bazaar: PyConsoleCtrl: history functionality, BoostPyTest: Value exposure as int, first try, starting upp module
git-svn-id: svn://ultimatepp.org/upp/trunk@3339 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2011-04-13 14:54:33 +00:00

10 lines
212 B
C++

#include "world.h"
void export_world()
{
scope().attr("__doc__") = "Hello module's docstring";
class_<World>("World", "A simple world")
.def("greet", &World::greet)
.def("set", &World::set)
;
}