Mercurial > octave-nkf
diff src/DLD-FUNCTIONS/quad.cc @ 10066:2cd940306a06
make unwind_protect frames local
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Wed, 06 Jan 2010 13:18:41 +0100 |
parents | 610bf90fce2a |
children | 40dfc0c99116 |
line wrap: on
line diff
--- a/src/DLD-FUNCTIONS/quad.cc Tue Jan 05 13:16:16 2010 +0100 +++ b/src/DLD-FUNCTIONS/quad.cc Wed Jan 06 13:18:41 2010 +0100 @@ -153,7 +153,6 @@ { \ if (fcn_name.length()) \ clear_function (fcn_name); \ - unwind_protect::run_frame (uwp_frame); \ return retval; \ } \ while (0) @@ -221,9 +220,9 @@ warned_imaginary = false; - unwind_protect::frame_id_t uwp_frame = unwind_protect::begin_frame (); + unwind_protect frame; - unwind_protect::protect_var (call_depth); + frame.protect_var (call_depth); call_depth++; if (call_depth > 1) @@ -471,8 +470,6 @@ else print_usage (); - unwind_protect::run_frame (uwp_frame); - return retval; }