Scilab: fix dynamic_cast test case
Close SWIG_Init() in Scilab executable.
This commit is contained in:
parent
74243ae306
commit
25ffa87cab
2 changed files with 5 additions and 8 deletions
|
|
@ -230,9 +230,7 @@ SwigScilabRaise(const char *type) {
|
||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
||||||
%insert("init")
|
%init %{
|
||||||
%{
|
|
||||||
|
|
||||||
#define SWIG_GetModule(clientdata) SWIG_Scilab_GetModule()
|
#define SWIG_GetModule(clientdata) SWIG_Scilab_GetModule()
|
||||||
#define SWIG_SetModule(clientdata, pointer) SWIG_Scilab_SetModule(pointer)
|
#define SWIG_SetModule(clientdata, pointer) SWIG_Scilab_SetModule(pointer)
|
||||||
|
|
||||||
|
|
@ -246,18 +244,14 @@ SWIGRUNTIME void
|
||||||
SWIG_Scilab_SetModule(swig_module_info *swig_module)
|
SWIG_Scilab_SetModule(swig_module_info *swig_module)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
||||||
%insert(init) "swiginit.swg"
|
%insert(init) "swiginit.swg"
|
||||||
|
|
||||||
%init %{
|
%init %{
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C"
|
||||||
int SWIG_Init(char *fname, unsigned long fname_len) {
|
int SWIG_Init(char *fname, unsigned long fname_len) {
|
||||||
SWIG_InitializeModule(NULL);
|
SWIG_InitializeModule(NULL);
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
%}
|
%}
|
||||||
|
|
|
||||||
|
|
@ -208,6 +208,9 @@ public:
|
||||||
Close(builderFile);
|
Close(builderFile);
|
||||||
Delete(builderFile);
|
Delete(builderFile);
|
||||||
|
|
||||||
|
/* Close the init function (opened in sciinit.swg) */
|
||||||
|
Printf(initSection, "return 0;\n}\n");
|
||||||
|
|
||||||
/* Write all to the wrapper file */
|
/* Write all to the wrapper file */
|
||||||
SwigType_emit_type_table(runtimeSection, wrappersSection); // Declare pointer types, ... (Ex: SWIGTYPE_p_p_double)
|
SwigType_emit_type_table(runtimeSection, wrappersSection); // Declare pointer types, ... (Ex: SWIGTYPE_p_p_double)
|
||||||
Dump(runtimeSection, beginSection);
|
Dump(runtimeSection, beginSection);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue