Trying, in vain, to reproduce bug #798383...

This commit is contained in:
Gustavo J. A. M. Carneiro committed 2012-05-04 18:31:31 +01:00
1 parent 003d69124e
commit c3f5dd8aae
2 files changed
+14 -1

No files matched your search

+9
View File
@@ -512,6 +512,15 @@ namespace xpto
typedef Foo FooXpto;
std::string get_foo_datum(FooXpto const &foo);
struct XptoClass
{
SomeClass* GetSomeClass()
// -#- @return(caller_owns_return=true) -#-
{
return NULL;
}
};
}
// -#- @return(custodian=1, reference_existing_object=true); @other(transfer_ownership=false) -#-
+5 -1
View File
@@ -12,7 +12,7 @@ from pybindgen.function import CustomFunctionWrapper
from pybindgen.cppmethod import CustomCppMethodWrapper
from pybindgen import cppclass
from pybindgen import param
from pybindgen import param, retval
import foomodulegen_common
@@ -298,6 +298,10 @@ int %s::custom_method_added_by_a_hook(int x)
typehandlers.add_type_alias('uint32_t', 'xpto::FlowId')
xpto.add_function('get_flow_id', 'xpto::FlowId', [Parameter.new('xpto::FlowId', 'flowId')])
# bug #798383
XptoClass = xpto.add_struct('XptoClass')
XptoClass.add_method("GetSomeClass", retval("xpto::SomeClass*", caller_owns_return=True), [])
## ---- some implicity conversion APIs