Author: Wim Lavrijsen <[email protected]>
Branch: cppyy-packaging
Changeset: r94433:3f9d98258560
Date: 2018-04-23 19:46 -0700
http://bitbucket.org/pypy/pypy/changeset/3f9d98258560/
Log: update enum handling
diff --git a/pypy/module/_cppyy/src/dummy_backend.cxx
b/pypy/module/_cppyy/src/dummy_backend.cxx
--- a/pypy/module/_cppyy/src/dummy_backend.cxx
+++ b/pypy/module/_cppyy/src/dummy_backend.cxx
@@ -408,6 +408,8 @@
/* name to opaque C++ scope representation -------------------------------- */
char* cppyy_resolve_name(const char* cppitem_name) {
+ if (cppyy_is_enum(cppitem_name))
+ return cppstring_to_cstring("internal_enum_type_t");
return cppstring_to_cstring(cppitem_name);
}
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit