Mercurial > hg > octave-lyh
comparison src/ov-builtin.cc @ 7487:1e01db14700b
catch octave_execution_exception for built-in and mex functions
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 15 Feb 2008 19:49:14 -0500 |
parents | a1dbe9d80eee |
children | 3100283874d7 |
comparison
equal
deleted
inserted
replaced
7486:6a6d2abe51ff | 7487:1e01db14700b |
---|---|
99 | 99 |
100 octave_call_stack::push (this); | 100 octave_call_stack::push (this); |
101 | 101 |
102 unwind_protect::add (octave_call_stack::unwind_pop, 0); | 102 unwind_protect::add (octave_call_stack::unwind_pop, 0); |
103 | 103 |
104 retval = (*f) (args, nargout); | 104 try |
105 { | |
106 retval = (*f) (args, nargout); | |
107 } | |
108 catch (octave_execution_exception) | |
109 { | |
110 octave_exception_state = octave_no_exception; | |
111 error ("caught execution error in library function"); | |
112 } | |
105 | 113 |
106 unwind_protect::run_frame ("builtin_func_eval"); | 114 unwind_protect::run_frame ("builtin_func_eval"); |
107 } | 115 } |
108 | 116 |
109 return retval; | 117 return retval; |