Scilab: fix SWIT_Init() close in C mode

This commit is contained in:
Simon Marchetto 2013-07-31 11:57:16 +02:00
commit 077e69a851
2 changed files with 1 additions and 2 deletions

View file

@ -253,5 +253,4 @@ SWIG_Scilab_SetModule(swig_module_info *swig_module)
extern "C"
int SWIG_Init(char *fname, unsigned long fname_len) {
SWIG_InitializeModule(NULL);
#endif
%}

View file

@ -209,7 +209,7 @@ public:
Delete(builderFile);
/* Close the init function (opened in sciinit.swg) */
Printf(initSection, "return 0;\n}\n");
Printf(initSection, "return 0;\n}\n#endif\n");
/* Write all to the wrapper file */
SwigType_emit_type_table(runtimeSection, wrappersSection); // Declare pointer types, ... (Ex: SWIGTYPE_p_p_double)