|
From: James M. <jam...@gm...> - 2008-11-20 07:33:39
|
Hi,
I have been scrambling for the past few weeks to pickup using SWIG and I've
been able to deal with a number of issues by consulting the documentation,
web pages, forum postings, etc. However, I can't seem to find an answer to
a problem that I'm currently facing. I would like to create an argout
typemap for functions matching a certain set of input parameters. The
library that I'm converting is very large (nearly 2k C++ classes) and I
would like to ensure that the argout typemap only applies to functions that
don't return anything already (void return). If the function already has a
return value, then I don't want the argout typemap to apply. Is this
possible? Here is a simplified example:
%typemap(argout) (const int &a, double &b) {
//FINDME
}
class Foobar {
public:
Foobar();
void test(const int &a, double &b); // Apply to this function (void
return)
int test2(const int &a, double &b); // Do NOT apply to this function (int
return)
~Foobar();
};
Thanks,
-James
|