#### File: MLS_applyDeform_emxutil.c
        1   /*
        2    * MLS_applyDeform_emxutil.c
        3    *
        4    * Code generation for function 'MLS_applyDeform_emxutil'
        5    *
        6    */
        7
        8   /* Include files */
        9   #include "rt_nonfinite.h"
       10   #include "MLS_applyDeform.h"
       11   #include "MLS_applyDeform_emxutil.h"
       12
       13   /* Function Definitions */
       14   void emxFree_real_T(emxArray_real_T **pEmxArray)
       15   {
       16     if (*pEmxArray != (emxArray_real_T *)NULL) {
       17       if (((*pEmxArray)->data != (real_T *)NULL) && (*pEmxArray)->canFreeData) {
       18         emlrtFreeMex((void *)(*pEmxArray)->data);
       19       }
       20
       21       emlrtFreeMex((void *)(*pEmxArray)->size);
       22       emlrtFreeMex((void *)*pEmxArray);
       23       *pEmxArray = (emxArray_real_T *)NULL;
       24     }
       25   }
       26
       27   void emxInit_real_T(const emlrtStack *sp, emxArray_real_T **pEmxArray, int32_T
       28                       numDimensions, const emlrtRTEInfo *srcLocation, boolean_T
       29                       doPush)
       30   {
       31     emxArray_real_T *emxArray;
       32     int32_T i;
       33     *pEmxArray = (emxArray_real_T *)emlrtMallocMex(sizeof(emxArray_real_T));
       34     if ((void *)*pEmxArray == NULL) {
       35       emlrtHeapAllocationErrorR2012b(srcLocation, sp);
       36     }
       37
       38     if (doPush) {
       39       emlrtPushHeapReferenceStackR2012b(sp, (void *)pEmxArray, (void (*)(void *))
       40         emxFree_real_T);
       41     }
       42
       43     emxArray = *pEmxArray;
       44     emxArray->data = (real_T *)NULL;
       45     emxArray->numDimensions = numDimensions;
       46     emxArray->size = (int32_T *)emlrtMallocMex((uint32_T)(sizeof(int32_T)
       47       * numDimensions));
       48     if ((void *)emxArray->size == NULL) {
       49       emlrtHeapAllocationErrorR2012b(srcLocation, sp);
       50     }
       51
       52     emxArray->allocatedSize = 0;
       53     emxArray->canFreeData = true;
       54     for (i = 0; i < numDimensions; i++) {
       55       emxArray->size[i] = 0;
       56     }
       57   }
       58
       59   /* End of code generation (MLS_applyDeform_emxutil.c) */
       60