File: D:\TMTmethod\simulator\codegen\mex\testspline\testspline_mex.c1 /* 2 * testspline_mex.c 3 * 4 * Code generation for function 'testspline' 5 * 6 * C source code generated on: Thu Aug 30 14:03:55 2012 7 * 8 */ 9 10 /* Include files */ 11 #include "mex.h" 12 #include "testspline_api.h" 13 #include "testspline_initialize.h" 14 #include "testspline_terminate.h" 15 16 /* Type Definitions */ 17 18 /* Function Declarations */ 19 static void testspline_mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]); 20 21 /* Variable Definitions */ 22 emlrtContext emlrtContextGlobal = { true, false, EMLRT_VERSION_INFO, NULL, "testspline", NULL, false, NULL, false, 1, false }; 23 24 /* Function Definitions */ 25 static void testspline_mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) 26 { 27 /* Check for proper number of arguments. */ 28 if(nrhs != 0) { 29 mexErrMsgIdAndTxt("emlcoder:emlmex:WrongNumberOfInputs","0 inputs required for entry-point 'testspline'."); 30 } else if(nlhs > 0) { 31 mexErrMsgIdAndTxt("emlcoder:emlmex:TooManyOutputArguments","Too many output arguments for entry-point 'testspline'."); 32 } 33 /* Module initialization. */ 34 testspline_initialize(&emlrtContextGlobal); 35 /* Call the function. */ 36 testspline_api(); 37 /* Module finalization. */ 38 testspline_terminate(); 39 } 40 void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) 41 { 42 /* Initialize the memory manager. */ 43 mexAtExit(testspline_atexit); 44 emlrtClearAllocCount(&emlrtContextGlobal, 0, 0, NULL); 45 /* Dispatch the entry-point. */ 46 testspline_mexFunction(nlhs, plhs, nrhs, prhs); 47 } 48 /* End of code generation (testspline_mex.c) */ 49 |