/* * File: _coder_targetSpec_mex.c * * MATLAB Coder version : 2.8 * C/C++ source code generated on : 03-Aug-2016 03:43:08 */ /* Include Files */ #include "_coder_targetSpec_api.h" #include "_coder_targetSpec_mex.h" /* Function Declarations */ static void targetSpec_mexFunction(int32_T nlhs, mxArray *plhs[3], int32_T nrhs, const mxArray *prhs[8]); /* Function Definitions */ /* * Arguments : int32_T nlhs * const mxArray *plhs[3] * int32_T nrhs * const mxArray *prhs[8] * Return Type : void */ static void targetSpec_mexFunction(int32_T nlhs, mxArray *plhs[3], int32_T nrhs, const mxArray *prhs[8]) { int32_T n; const mxArray *inputs[8]; const mxArray *outputs[3]; int32_T b_nlhs; emlrtStack st = { NULL, NULL, NULL }; st.tls = emlrtRootTLSGlobal; /* Check for proper number of arguments. */ if (nrhs != 8) { emlrtErrMsgIdAndTxt(&st, "EMLRT:runTime:WrongNumberOfInputs", 5, 12, 8, 4, 10, "targetSpec"); } if (nlhs > 3) { emlrtErrMsgIdAndTxt(&st, "EMLRT:runTime:TooManyOutputArguments", 3, 4, 10, "targetSpec"); } /* Temporary copy for mex inputs. */ for (n = 0; n < nrhs; n++) { inputs[n] = prhs[n]; } /* Call the function. */ targetSpec_api(inputs, outputs); /* Copy over outputs to the caller. */ if (nlhs < 1) { b_nlhs = 1; } else { b_nlhs = nlhs; } emlrtReturnArrays(b_nlhs, plhs, outputs); /* Module termination. */ targetSpec_terminate(); } /* * Arguments : int32_T nlhs * const mxArray * const plhs[] * int32_T nrhs * const mxArray * const prhs[] * Return Type : void */ void mexFunction(int32_T nlhs, mxArray *plhs[], int32_T nrhs, const mxArray *prhs[]) { /* Initialize the memory manager. */ mexAtExit(targetSpec_atexit); /* Module initialization. */ targetSpec_initialize(); /* Dispatch the entry-point. */ targetSpec_mexFunction(nlhs, plhs, nrhs, prhs); } /* * File trailer for _coder_targetSpec_mex.c * * [EOF] */