Merge branch 'director-unwrap-result'
* director-unwrap-result: Unwrap director classes only when returning a pointer or reference to an object
This commit is contained in:
commit
4a397869a2
9 changed files with 369 additions and 6 deletions
|
|
@ -3159,9 +3159,7 @@ public:
|
|||
#if 1
|
||||
int unwrap = 0;
|
||||
String *decl = Getattr(n, "decl");
|
||||
int is_pointer = SwigType_ispointer_return(decl);
|
||||
int is_reference = SwigType_isreference_return(decl);
|
||||
if (is_pointer || is_reference) {
|
||||
if (SwigType_refptr_count_return(decl) == 1) {
|
||||
String *type = Getattr(n, "type");
|
||||
//Node *classNode = Swig_methodclass(n);
|
||||
//Node *module = Getattr(classNode, "module");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue