Mercurial > hg > octave-lyh
diff src/ov-builtin.cc @ 10066:2cd940306a06
make unwind_protect frames local
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Wed, 06 Jan 2010 13:18:41 +0100 |
parents | 17af7cce7d1b |
children | cd96d29c5efa |
line wrap: on
line diff
--- a/src/ov-builtin.cc +++ b/src/ov-builtin.cc @@ -96,11 +96,11 @@ ::error ("invalid use of colon in function argument list"); else { - unwind_protect::frame_id_t uwp_frame = unwind_protect::begin_frame (); + unwind_protect frame; octave_call_stack::push (this); - unwind_protect::add_fcn (octave_call_stack::pop); + frame.add_fcn (octave_call_stack::pop); try { @@ -113,8 +113,6 @@ { gripe_library_execution_error (); } - - unwind_protect::run_frame (uwp_frame); } return retval;