diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-09-01 22:34:00 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-09-01 23:05:50 -0300 |
commit | c5f22026676c907eb91442754a7d4cfe0486f045 (patch) | |
tree | 0a152f8c88444387038a8fbe3af72dec8fec7323 /tests/samplebinding/global.h | |
parent | 06ebb031b31d1c37eb7f2888d38356a2f083cd81 (diff) |
Changed generator to convert the method call results on wrapped methods
at each possible call, instead of receiving the return value in the C++
type and converting it later. Having the result value as a PyObject
pointer avoids the problem of declaring the return value variable with
a class that do not have a simple constructor.
Example: "Foo resultValue;" is a problem when the only constructor for
"Foo" is "Foo(int)".
The above described problem is made worse with the addition of OddBool
and OddBoolUser cases to the sample library. OddBool is registered as a
primitive (and convertible) type, registered this way it is only
available as a TypeEntry and a suitable constructor cannot possibly
be found. This is different from Value and Object types for they
become AbstractMetaClass objects and all constructor signatures
can be queried.
Diffstat (limited to 'tests/samplebinding/global.h')
-rw-r--r-- | tests/samplebinding/global.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/samplebinding/global.h b/tests/samplebinding/global.h index 90e9b863f..5717f7e14 100644 --- a/tests/samplebinding/global.h +++ b/tests/samplebinding/global.h @@ -14,4 +14,5 @@ #include "reference.h" #include "virtualmethods.h" #include "nondefaultctor.h" +#include "oddbool.h" #include "privatedtor.h" |