File: nrt_terminate.c1 /* 2 * nrt_terminate.c 3 * 4 * Code generation for function 'nrt_terminate' 5 * 6 */ 7 8 /* Include files */ 9 #include "rt_nonfinite.h" 10 #include "nrt.h" 11 #include "nrt_terminate.h" 12 13 /* Function Definitions */ 14 void nrt_atexit(void) 15 { 16 emlrtStack st = { NULL, NULL, NULL }; 17 18 emlrtCreateRootTLS(&emlrtRootTLSGlobal, &emlrtContextGlobal, NULL, 1); 19 st.tls = emlrtRootTLSGlobal; 20 emlrtEnterRtStackR2012b(&st); 21 emlrtLeaveRtStackR2012b(&st); 22 emlrtDestroyRootTLS(&emlrtRootTLSGlobal); 23 } 24 25 void nrt_terminate(void) 26 { 27 emlrtStack st = { NULL, NULL, NULL }; 28 29 st.tls = emlrtRootTLSGlobal; 30 emlrtLeaveRtStackR2012b(&st); 31 emlrtDestroyRootTLS(&emlrtRootTLSGlobal); 32 } 33 34 /* End of code generation (nrt_terminate.c) */ 35 |