From: Eric Wing <ewmailing@gm...> - 2013-06-23 09:59:50
I have some APIs that would benefit from multiple return values. But I
don't know what to do for scripting languages that don't support
I think my desired scenario would be to return a native scripting
language array (not a C array) that is filled with the items.
// in C
void getColor(double* out_red, double* out_green, double*, out_blue,
var red = ret_array;
var green = ret_array;
var blue = ret_array;
var alpha = ret_array;
Is there a way to accomplish this in SWIG?
Beginning iPhone Games Development