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:
parent
525198bd66
commit
7a4bd86bf5
1 changed files with 27 additions and 0 deletions
|
|
@ -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;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue