Fix constructors in named typedef class declarations
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12784 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
c794d08597
commit
30206f975c
14 changed files with 86 additions and 38 deletions
|
|
@ -73,9 +73,8 @@ void NAME##_setitem(TYPE *ary, int index, TYPE value);
|
|||
%{
|
||||
typedef TYPE NAME;
|
||||
%}
|
||||
typedef struct NAME {
|
||||
typedef struct {
|
||||
/* Put language specific enhancements here */
|
||||
|
||||
} NAME;
|
||||
|
||||
%extend NAME {
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ void NAME##_setitem(TYPE *ary, int index, TYPE value);
|
|||
typedef TYPE NAME;
|
||||
%}
|
||||
|
||||
typedef struct NAME {} NAME;
|
||||
typedef struct {} NAME;
|
||||
|
||||
%extend NAME {
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
%feature("python:slot", "sq_ass_item", functype="ssizeobjargproc") NAME::__setitem__;
|
||||
|
||||
%inline %{
|
||||
typedef struct NAME {
|
||||
typedef struct {
|
||||
TYPE *el;
|
||||
} NAME;
|
||||
%}
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ typedef TYPE NAME;
|
|||
%}
|
||||
|
||||
|
||||
typedef struct NAME {
|
||||
typedef struct {
|
||||
} NAME;
|
||||
|
||||
%extend NAME {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue