User`s guide
Internal Interface Functions
5-17
int i;
mclCppUndefineArrays(1, mplhs);
if (nlhs > 1) {
error(
mwVarargin(
mwArray(
"Run-time Error: File: gasket Line:"
" 1 Column: 1 The function \"gasket"
"\" was called with more than the d"
"eclared number of outputs (1).")));
}
if (nrhs > 1) {
error(
mwVarargin(
mwArray(
"Run-time Error: File: gasket Line:"
" 1 Column: 1 The function \"gasket"
"\" was called with more than the d"
"eclared number of inputs (1).")));
}
for (i = 0; i < 1 && i < nrhs; ++i) {
mprhs[i] = mwArray(prhs[i], 0);
}
for (; i < 1; ++i) {
mprhs[i].MakeDIN();
}
// ----------------- Call M-Function ---------------------
mplhs[0] = Mgasket(nlhs, mprhs[0]);
// ------------- Output Argument Processing --------------
plhs[0] = mplhs[0].FreezeData();
}
MW_END_MLX();
}
F Interface Function
The Compiler always generates the F interface function, which contains the
“normal” C++ interface to the function. This code is the corresponding C++
interface function (
gasket) from the Sierpinski Gasket example. This function
calls the C++ code: