fix error #1468674 enums + char
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9057 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
378283b5c2
commit
864e179723
2 changed files with 28 additions and 2 deletions
|
|
@ -49,3 +49,27 @@ typedef struct _Foo {
|
|||
%}
|
||||
|
||||
|
||||
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) iFoo; /* Ruby, wrong constant name */
|
||||
|
||||
#ifndef __cplusplus
|
||||
%inline %{
|
||||
typedef struct _iFoo
|
||||
{
|
||||
enum {
|
||||
Phoo = +50,
|
||||
Char = 'a'
|
||||
} e;
|
||||
} iFoo;
|
||||
%}
|
||||
#else
|
||||
%inline %{
|
||||
struct iFoo
|
||||
{
|
||||
enum {
|
||||
Phoo = +50,
|
||||
Char = 'a'
|
||||
};
|
||||
};
|
||||
%}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue