File: _coder_Datalogger4ChConverter_ErrInsensitiveSound_mex.c1 /* 2 * _coder_Datalogger4ChConverter_ErrInsensitiveSound_mex.c 3 * 4 * Code generation for function '_coder_Datalogger4ChConverter_ErrInsensitiveSound_mex' 5 * 6 */ 7 8 /* Include files */ 9 #include "Datalogger4ChConverter_ErrInsensitiveSound.h" 10 #include "_coder_Datalogger4ChConverter_ErrInsensitiveSound_mex.h" 11 #include "Datalogger4ChConverter_ErrInsensitiveSound_terminate.h" 12 #include "_coder_Datalogger4ChConverter_ErrInsensitiveSound_api.h" 13 #include "Datalogger4ChConverter_ErrInsensitiveSound_initialize.h" 14 #include "Datalogger4ChConverter_ErrInsensitiveSound_data.h" 15 #include <stdio.h> 16 17 /* Function Declarations */ 18 static void d_Datalogger4ChConverter_ErrIns(int32_T nlhs, mxArray *plhs[3], 19 int32_T nrhs, const mxArray *prhs[1]); 20 21 /* Function Definitions */ 22 static void d_Datalogger4ChConverter_ErrIns(int32_T nlhs, mxArray *plhs[3], 23 int32_T nrhs, const mxArray *prhs[1]) 24 { 25 int32_T n; 26 const mxArray *inputs[1]; 27 const mxArray *outputs[3]; 28 int32_T b_nlhs; 29 emlrtStack st = { NULL, NULL, NULL }; 30 31 st.tls = emlrtRootTLSGlobal; 32 33 /* Check for proper number of arguments. */ 34 if (nrhs != 1) { 35 emlrtErrMsgIdAndTxt(&st, "EMLRT:runTime:WrongNumberOfInputs", 5, 12, 1, 4, 36 42, "Datalogger4ChConverter_ErrInsensitiveSound"); 37 } 38 39 if (nlhs > 3) { 40 emlrtErrMsgIdAndTxt(&st, "EMLRT:runTime:TooManyOutputArguments", 3, 4, 42, 41 "Datalogger4ChConverter_ErrInsensitiveSound"); 42 } 43 44 /* Temporary copy for mex inputs. */ 45 for (n = 0; n < nrhs; n++) { 46 inputs[n] = prhs[n]; 47 if (*emlrtBreakCheckR2012bFlagVar != 0) { 48 emlrtBreakCheckR2012b(&st); 49 } 50 } 51 52 /* Call the function. */ 53 Datalogger4ChConverter_ErrInsensitiveSound_api(inputs, outputs); 54 55 /* Copy over outputs to the caller. */ 56 if (nlhs < 1) { 57 b_nlhs = 1; 58 } else { 59 b_nlhs = nlhs; 60 } 61 62 emlrtReturnArrays(b_nlhs, plhs, outputs); 63 64 /* Module termination. */ 65 Datalogger4ChConverter_ErrInsensitiveSound_terminate(); 66 } 67 68 void mexFunction(int32_T nlhs, mxArray *plhs[], int32_T nrhs, const mxArray 69 *prhs[]) 70 { 71 mexAtExit(Datalogger4ChConverter_ErrInsensitiveSound_atexit); 72 73 /* Initialize the memory manager. */ 74 /* Module initialization. */ 75 Datalogger4ChConverter_ErrInsensitiveSound_initialize(); 76 77 /* Dispatch the entry-point. */ 78 d_Datalogger4ChConverter_ErrIns(nlhs, plhs, nrhs, prhs); 79 } 80 81 emlrtCTX mexFunctionCreateRootTLS(void) 82 { 83 emlrtCreateRootTLS(&emlrtRootTLSGlobal, &emlrtContextGlobal, NULL, 1); 84 return emlrtRootTLSGlobal; 85 } 86 87 /* End of code generation (_coder_Datalogger4ChConverter_ErrInsensitiveSound_mex.c) */ 88 |