add namespace case

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7808 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2005-11-05 12:36:38 +00:00
commit 7a4bd86bf5

View file

@ -49,3 +49,30 @@ class Foo {
}
};
%inline {
namespace ns1
{
struct Bar
{
}
;
}
}
%{
int ns1_Bar_x_get(ns1::Bar *self) {
return 1;
}
void ns1_Bar_x_set(ns1::Bar *self, int x) {
}
%}
%extend ns1::Bar
{
int x;
}