mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 06:05:58 -06:00
10 lines
212 B
C++
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)
|
|
;
|
|
}
|