fix C + struct + enums
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8766 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
ece35ac5ea
commit
4221c3e12c
2 changed files with 2 additions and 2 deletions
|
|
@ -2248,7 +2248,7 @@ class CSHARP : public Language {
|
|||
value = Getattr(n,"enumvalue") ? Copy(Getattr(n,"enumvalue")) : Copy(Getattr(n,"enumvalueex"));
|
||||
} else {
|
||||
// Get the enumvalue from a PINVOKE call
|
||||
if (!getCurrentClass()) {
|
||||
if (!getCurrentClass() || !cparse_cplusplus) {
|
||||
// Strange hack to change the name
|
||||
Setattr(n,"name",Getattr(n,"value")); /* for wrapping of enums in a namespace when emit_action is used */
|
||||
constantWrapper(n);
|
||||
|
|
|
|||
|
|
@ -2396,7 +2396,7 @@ class JAVA : public Language {
|
|||
value = Getattr(n,"enumvalue") ? Copy(Getattr(n,"enumvalue")) : Copy(Getattr(n,"enumvalueex"));
|
||||
} else {
|
||||
// Get the enumvalue from a JNI call
|
||||
if (!getCurrentClass()) {
|
||||
if (!getCurrentClass() || !cparse_cplusplus) {
|
||||
// Strange hack to change the name
|
||||
Setattr(n,"name",Getattr(n,"value")); /* for wrapping of enums in a namespace when emit_action is used */
|
||||
constantWrapper(n);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue