Ignored nested class/struct warnings now display the name of the ignored class/struct.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11728 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2009-11-08 01:18:45 +00:00
commit 9d65c100b9
6 changed files with 59 additions and 6 deletions

View file

@ -0,0 +1,40 @@
%module nested_class
#pragma SWIG nowarn=SWIGWARN_PARSE_NESTED_CLASS
%inline %{
struct Outer {
struct Inner1 {
int x;
};
class Inner2 {
public:
int x;
};
class {
public:
int a;
};
struct {
int b;
};
union {
int c;
double d;
};
class Inner3 {
public:
int x;
} Inner3Name;
struct Inner4 {
int x;
} Inner4Name;
};
%}