%extend symbols for nested structs get into a wrong C symbol table
This commit is contained in:
parent
68347cb723
commit
665c4f581b
2 changed files with 15 additions and 6 deletions
|
|
@ -10,6 +10,7 @@
|
|||
char hi_extend() {
|
||||
return $self->c;
|
||||
}
|
||||
static const long swig_size = sizeof(hiA);
|
||||
}
|
||||
%extend lowA {
|
||||
lowA() {
|
||||
|
|
@ -21,6 +22,7 @@
|
|||
int low_extend() {
|
||||
return $self->num;
|
||||
}
|
||||
static const long swig_size = sizeof(lowA);
|
||||
}
|
||||
|
||||
%extend hiB {
|
||||
|
|
@ -32,6 +34,7 @@
|
|||
char hi_extend() {
|
||||
return $self->c;
|
||||
}
|
||||
static const long swig_size = sizeof(hiB);
|
||||
}
|
||||
%extend lowB {
|
||||
lowB() {
|
||||
|
|
@ -43,6 +46,7 @@
|
|||
int low_extend() {
|
||||
return $self->num;
|
||||
}
|
||||
static const long swig_size = sizeof(lowB);
|
||||
}
|
||||
|
||||
%extend FOO_bar {
|
||||
|
|
@ -50,6 +54,9 @@
|
|||
$self->d = 1;
|
||||
}
|
||||
};
|
||||
%extend NestedA {
|
||||
static const long swig_size = sizeof(NestedA);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue