Added $ndim variable to typemaps.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@229 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
e52a46d271
commit
a23f1a1285
1 changed files with 2 additions and 0 deletions
|
|
@ -461,6 +461,8 @@ TypeMap *typemap_search_array(char *op, char *lang, DataType *type, char *pname,
|
||||||
if (tm) {
|
if (tm) {
|
||||||
str << tm->code;
|
str << tm->code;
|
||||||
ndim = type->array_dimensions();
|
ndim = type->array_dimensions();
|
||||||
|
sprintf(temp,"%d",ndim);
|
||||||
|
str.replace("$ndim",temp);
|
||||||
for (i = 0; i < ndim; i++) {
|
for (i = 0; i < ndim; i++) {
|
||||||
sprintf(temp,"$dim%d",i);
|
sprintf(temp,"$dim%d",i);
|
||||||
str.replace(temp,type->get_dimension(i));
|
str.replace(temp,type->get_dimension(i));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue