|
From: Eileen W. <ew...@Fe...> - 2011-04-19 19:49:19
|
Hi,
I am wrapping a C++ header file to Python.
In my .h file I have two functions defined like this:
static bool foo1(
const double& parm1,
double& result1 );
static bool foo2(
const double& result1,
double& result2 );
So result1 is a return value in function foo1, but an input parameter in function foo2.
If I do
%apply double& OUTPUT { double& result1 };
It will not only change the behaviour of foo1 to return 2 values, but it will also affect foo2, which I don't want.
My question is how can I specify that this typemap only applies to foo1 and not other functions in the .h file?
Thanks,
Eileen
|