[scilab] Name init function name to avoid collision

Use SWIG_<module>_Init() function to init the module rather than
<module>_Init() as the latter can collide with a function being wrapped.

Fixes #745
Fixes #1739
This commit is contained in:
Clement David 2020-02-27 16:44:09 +01:00 committed by Olly Betts
commit aee380ce82
3 changed files with 6 additions and 2 deletions

View file

@ -228,9 +228,10 @@ public:
// Module initialization function
String *gatewayInitFunctionName = NewStringf("%s_Init", gatewayName);
String *wrapperInitFunctionName = NewStringf("SWIG_%s_Init", gatewayName);
/* Add initialization function to builder table */
addFunctionToScilab(gatewayInitFunctionName, gatewayInitFunctionName);
addFunctionToScilab(gatewayInitFunctionName, wrapperInitFunctionName);
// Add helper functions to builder table
addHelperFunctions();