Add missing SWIGSCILAB in wrappers and fix unions test for non-scilab languages
This commit is contained in:
parent
33fba2020b
commit
1fae569960
2 changed files with 8 additions and 18 deletions
|
|
@ -33,8 +33,6 @@ typedef union {
|
||||||
|
|
||||||
/* This union checks the parser and will be used in a runtime test */
|
/* This union checks the parser and will be used in a runtime test */
|
||||||
|
|
||||||
#if not defined(SWIGSCILAB)
|
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|
@ -44,23 +42,12 @@ typedef struct {
|
||||||
SmallStruct small;
|
SmallStruct small;
|
||||||
} uni;
|
} uni;
|
||||||
int number;
|
int number;
|
||||||
} EmbeddedUnionTest;
|
}
|
||||||
|
#if !defined(SWIGSCILAB)
|
||||||
%}
|
EmbeddedUnionTest;
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
EmbedUnionTst;
|
||||||
%inline %{
|
#endif
|
||||||
|
|
||||||
typedef struct {
|
|
||||||
union
|
|
||||||
{
|
|
||||||
BigStruct big;
|
|
||||||
SmallStruct small;
|
|
||||||
} uni;
|
|
||||||
int number;
|
|
||||||
} EmbedUnionTst;
|
|
||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -195,6 +195,9 @@ public:
|
||||||
/* Output module initialization code */
|
/* Output module initialization code */
|
||||||
Swig_banner(beginSection);
|
Swig_banner(beginSection);
|
||||||
|
|
||||||
|
Printf(runtimeSection, "\n#define SWIGSCILAB\n");
|
||||||
|
Printf(runtimeSection, "\n");
|
||||||
|
|
||||||
// Gateway header source merged with wrapper source in nobuilder mode
|
// Gateway header source merged with wrapper source in nobuilder mode
|
||||||
if (!generateBuilder)
|
if (!generateBuilder)
|
||||||
startGatewayHeader(gatewayLibraryName);
|
startGatewayHeader(gatewayLibraryName);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue