|
version 0.4.1
|
Go to the documentation of this file.
6#define ENUM_BINDINGS_WITH_MODULE(Type, module) \
7 py::enum_<Type> Type##Enum(module, #Type); \
8 Type Type##EnumV = Type::BEGIN; \
9 Ikarus::increment(Type##EnumV); \
10 for (; Type##EnumV != Type::END; Ikarus::increment(Type##EnumV)) \
11 Type##Enum.value(toString(Type##EnumV).c_str(), Type##EnumV);
13#define ENUM_BINDINGS(Type) ENUM_BINDINGS_WITH_MODULE(Type, m)