Author: Wim Lavrijsen <[email protected]>
Branch: reflex-support
Changeset: r53223:cbc756a0cae9
Date: 2012-03-05 00:27 -0800
http://bitbucket.org/pypy/pypy/changeset/cbc756a0cae9/

Log:    enum support for CINT backend

diff --git a/pypy/module/cppyy/src/cintcwrapper.cxx 
b/pypy/module/cppyy/src/cintcwrapper.cxx
--- a/pypy/module/cppyy/src/cintcwrapper.cxx
+++ b/pypy/module/cppyy/src/cintcwrapper.cxx
@@ -338,6 +338,11 @@
     return false;
 }
 
+int cppyy_is_enum(const char* type_name) {
+    G__TypeInfo ti(type_name);
+    return (ti.Property() & G__BIT_ISENUM);
+}
+
 
 /* type/class reflection information -------------------------------------- */
 char* cppyy_final_name(cppyy_type_t handle) {
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to