[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:
parent
eb13261950
commit
aee380ce82
3 changed files with 6 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue