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:
Marcelo Matus 2006-02-09 23:14:33 +00:00
commit 4221c3e12c
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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);