[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
|
|
@ -40,7 +40,7 @@ SWIG_Scilab_TypeQuery(const char *name) {
|
|||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
#endif
|
||||
int <module>_Init(SWIG_GatewayParameters) {
|
||||
int SWIG_<module>_Init(SWIG_GatewayParameters) {
|
||||
SWIG_InitializeModule(NULL);
|
||||
SWIG_CreateScilabVariables(pvApiCtx);
|
||||
swig_module_initialized = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue