Commit 69189223 by Wenzel Jakob

allow enums values to be cast to integers

parent ac0fde98
......@@ -812,6 +812,7 @@ public:
((it == entries->end()) ? std::string("???")
: std::string(it->second));
});
this->def("__int__", [](Type value) { return (int) value; });
m_entries = entries;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment