scilab: for scilab 6, cannot pass API pointer everywhere in SWIG, use global pointer for now

This commit is contained in:
Simon Marchetto 2014-05-22 10:56:02 +02:00
commit 82fed351dd
2 changed files with 7 additions and 1 deletions

View file

@ -346,6 +346,7 @@ public:
Printf(wrapper->code, "SWIG_CheckInputArgument(pvApiCtx, $mininputarguments, $maxinputarguments);\n");
Printf(wrapper->code, "SWIG_CheckOutputArgument(pvApiCtx, $minoutputarguments, $maxoutputarguments);\n");
Printf(wrapper->code, "SWIG_Scilab_SetFname(fname);\n");
Printf(wrapper->code, "SWIG_Scilab_SetApiContext(pvApiCtx);\n");
for (paramIndex = 0, param = functionParamsList; paramIndex < maxInputArguments; ++paramIndex) {
// Ignore parameter if the typemap specifies numinputs=0