logo       

%typemap(argout) does not support sequences of consecutive argume nts.: msg#00077

programming.swig

Subject: %typemap(argout) does not support sequences of consecutive argume nts.

David Benjamin-bdavid02 writes:
> Hi,
>
> I need to define a typemap as follow :
>
> %typemap(argout) int * , aecErrorData * {
>
> }
>
> I need this as arg1 (int * ) specifies the validity of arg2 (aecErrorData * )
>

Be careful with the syntax

%typemap(argout) (int *, aecErrorData *) {
...
}

> This is not supported as far as I can see !
>

It is as far as I know.

> I can use $1 and $2 to specify the arguments on the C++ side but
> I only have $input on the other side, so I can not return a value for the
> second argument !
>

Huh? I'm not sure I follow. Why would the input prevent you from
returning multiple arguments?

Cheers,
Dave
_______________________________________________
Swig maillist - Swig@xxxxxxxxxxxxxxx
http://mailman.cs.uchicago.edu/mailman/listinfo/swig



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise