}
}
%typemap(freearg) type* IN_ARRAY3 {
+%#ifdef WITH_NUMPY
if (is_new_object$argnum && array$argnum)
{
Py_DECREF(array$argnum);
}
+%#endif
}
%enddef
}
}
%typemap(freearg) float* ecpval {
+%#ifdef WITH_NUMPY
if (is_new_object$argnum && array$argnum)
{
Py_DECREF(array$argnum);
}
+%#endif
}
/* End of Specific typemap for complex */
}
%typemap(freearg) (char** eval,int strSize) {
+%#ifdef WITH_NUMPY
if (array$argnum)
{
for(int i=0;i<array_size(array$argnum,0);i++)
{
Py_DECREF(array$argnum);
}
+%#endif
}
/* End of array of strings on input */
}
}
%typemap(freearg) (char** lval,int strSize) {
+%#ifdef WITH_NUMPY
if (temp$argnum) free($1);
+%#endif
}
/* End of typemap for array of strings on input/output */