Is there a way to make try-catch statements in mex files?

I know there is no built-in way to make try-catch statements in C, but did MATLAB make any try-catch function easier for MEX files? I tried using Longjmp and Setjmp in the way described in http://www.di.unipi.it/~nids/docs/longjump_try_trow_catch.html , but I failed. Has anyone else figured out the way?

+4
source share

Source: https://habr.com/ru/post/1487030/


All Articles