Here is the generated code in question.  Is that legit C++?

,----
| #ifdef SWIGTCL
| // A typemap telling SWIG to ignore an argument for input                     
                                 
| // However, we still need to pass a pointer to the C function                 
                                 
| %typemap(in,numinputs=0) char *outdata (char *temp) {
|      $1 = &temp;
| }
| // A typemap defining how to return an argument by appending it to the result 
                                 
| %typemap(argout) char *outdata {
|      Tcl_Obj *o = Tcl_NewStringObj($1);
|      Tcl_ListObjAppendElement(interp,$result,o);
| }
| #endif
`----




-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to