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
|
|
@ -1649,6 +1649,9 @@ int Language::externDeclaration(Node *n) {
|
|||
* ---------------------------------------------------------------------- */
|
||||
|
||||
int Language::enumDeclaration(Node *n) {
|
||||
if (CurrentClass && (cplus_mode != PUBLIC))
|
||||
return SWIG_NOWRAP;
|
||||
|
||||
String *oldNSpace = NSpace;
|
||||
NSpace = Getattr(n, "sym:nspace");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue