Scilab: fix test case autodoc
This commit is contained in:
parent
45dbdb2776
commit
ffc1d1221a
1 changed files with 8 additions and 1 deletions
|
|
@ -49,12 +49,17 @@ or you can use the %apply directive :
|
||||||
double fadd(double *a, double *b);
|
double fadd(double *a, double *b);
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
%typemap(in, noblock=1, fragment=SWIG_AsVal_frag(int)) int *INPUT(int temp), int &INPUT(int temp) {
|
%typemap(in, noblock=1, fragment=SWIG_AsVal_frag(int)) int *INPUT(int temp), int &INPUT(int temp) {
|
||||||
if (SWIG_AsVal_dec(int)($input, &temp) != SWIG_OK) {
|
if (SWIG_AsVal_dec(int)($input, &temp) != SWIG_OK) {
|
||||||
SWIG_fail;
|
SWIG_fail;
|
||||||
}
|
}
|
||||||
$1 = &temp;
|
$1 = &temp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
%typemap(freearg, noblock=1) int *INPUT, int &INPUT {
|
||||||
|
}
|
||||||
|
|
||||||
//short *INPUT
|
//short *INPUT
|
||||||
//long *INPUT
|
//long *INPUT
|
||||||
//long long *INPUT
|
//long long *INPUT
|
||||||
|
|
@ -65,6 +70,7 @@ or you can use the %apply directive :
|
||||||
//unsigned char *INPUT
|
//unsigned char *INPUT
|
||||||
//bool *INPUT
|
//bool *INPUT
|
||||||
//float *INPUT
|
//float *INPUT
|
||||||
|
|
||||||
%typemap(in, noblock=1, fragment=SWIG_AsVal_frag(double)) double *INPUT(double temp), double &INPUT(double temp) {
|
%typemap(in, noblock=1, fragment=SWIG_AsVal_frag(double)) double *INPUT(double temp), double &INPUT(double temp) {
|
||||||
if (SWIG_AsVal_dec(double)($input, &temp) != SWIG_OK) {
|
if (SWIG_AsVal_dec(double)($input, &temp) != SWIG_OK) {
|
||||||
SWIG_fail;
|
SWIG_fail;
|
||||||
|
|
@ -72,7 +78,8 @@ or you can use the %apply directive :
|
||||||
$1 = &temp;
|
$1 = &temp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
%typemap(freearg, noblock=1) double *INPUT, double &INPUT {
|
||||||
|
}
|
||||||
|
|
||||||
// OUTPUT typemaps. These typemaps are used for parameters that
|
// OUTPUT typemaps. These typemaps are used for parameters that
|
||||||
// are output only. The output value is appended to the result as
|
// are output only. The output value is appended to the result as
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue