logo       

RE: %typemap(argout) does not support sequences of consecu tive argume nts.: msg#00079

programming.swig

Subject: RE: %typemap(argout) does not support sequences of consecu tive argume nts.

David Benjamin-bdavid02 writes:
> I would like to do something similar to this :
>
> %typemap(argout) (int *, aecErrorData *)
> {
> // Process the int *
> $input = doSomething($1);
>
> // Process the aecErrorData *
> $input2 = doSomethingElse($2);
> }
>
> And here I am really stuck:
> $1 ---- > $input
> $2 ---- > ?????
>
> $2 does not have a counterpart...
>

What does $input have to do with output arguments? If you want to
output multiple arguments, you need to be working with $result, not
$input. However, assuming that both input arguments are available,
you can probably use $1_input and $2_input to obtain their original
values.

-- 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