stObjAppendElement(interp, $result, o);
}

// 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) double *outvalue (double temp) {
  $1 = &amp;temp;
}

// Now a function returning two values
int mypow(double a, double b, double *outvalue) {
  if ((a &lt; 0) || (b &lt; 0)) return -1;
  *outvalue = pow(a, b);
  return 0;
};
</pre></div>

<p>
When wrapped, SWIG matches the <tt>argout</tt> typemap to the
"<tt>double *outv