Fixed to array typemaps (memberin, globalin).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4828 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
66a19e2e11
commit
1a7caba8b5
1 changed files with 2 additions and 2 deletions
|
|
@ -188,13 +188,13 @@ namespace std {
|
||||||
|
|
||||||
/* memberin typemap for arrays. */
|
/* memberin typemap for arrays. */
|
||||||
|
|
||||||
%typemap(memberin) SWIGTYPE [] {
|
%typemap(memberin) SWIGTYPE [ANY] {
|
||||||
int ii;
|
int ii;
|
||||||
$1_basetype *b = ($1_basetype *) $1;
|
$1_basetype *b = ($1_basetype *) $1;
|
||||||
for (ii = 0; ii < $1_size; ii++) b[ii] = *(($1_basetype *) $input + ii);
|
for (ii = 0; ii < $1_size; ii++) b[ii] = *(($1_basetype *) $input + ii);
|
||||||
}
|
}
|
||||||
|
|
||||||
%typemap(globalin) SWIGTYPE [] {
|
%typemap(globalin) SWIGTYPE [ANY] {
|
||||||
int ii;
|
int ii;
|
||||||
$1_basetype *b = ($1_basetype *) $1;
|
$1_basetype *b = ($1_basetype *) $1;
|
||||||
for (ii = 0; ii < $1_size; ii++) b[ii] = *(($1_basetype *) $input + ii);
|
for (ii = 0; ii < $1_size; ii++) b[ii] = *(($1_basetype *) $input + ii);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue