Fix assertion for some languages when wrapping a C++11 enum class that is private in a class.
Also don't wrap private enums for a few languages that attempted to do so. Closes #594.
This commit is contained in:
parent
a15bbbaee5
commit
1d62790928
10 changed files with 38 additions and 1 deletions
|
|
@ -1287,6 +1287,9 @@ public:
|
|||
* typedef enum and enum are handled. I need to produce consistent names,
|
||||
* which means looking up and registering by typedef and enum name. */
|
||||
int enumDeclaration(Node *n) {
|
||||
if (getCurrentClass() && (cplus_mode != PUBLIC))
|
||||
return SWIG_NOWRAP;
|
||||
|
||||
String *name = Getattr(n, "name");
|
||||
if (name) {
|
||||
String *oname = NewString(name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue