|
RE: %typemap(argout) does not support sequences of consecu tive argume nts.: msg#00078programming.swig
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... Benjamin ---------------------------------------------------------------------------------- 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> |
|---|---|---|
| Previous by Date: | %typemap(argout) does not support sequences of consecutive argume nts.: 00078, David Beazley |
|---|---|
| Next by Date: | RE: %typemap(argout) does not support sequences of consecu tive argume nts.: 00078, David Beazley |
| Previous by Thread: | %typemap(argout) does not support sequences of consecutive argume nts.i: 00078, David Benjamin-bdavid02 |
| Next by Thread: | RE: %typemap(argout) does not support sequences of consecu tive argume nts.: 00078, David Beazley |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |