[pypy-commit] pypy reflex-support: enum support for CINT backend

wlav noreply at buildbot.pypy.org
Mon Mar 5 09:27:52 CET 2012


Author: Wim Lavrijsen <WLavrijsen at lbl.gov>
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) {


More information about the pypy-commit mailing list