comparison src/ov-class.cc @ 9377:610bf90fce2a

update unwind_protect usage everywhere
author Jaroslav Hajek <highegg@gmail.com>
date Tue, 23 Jun 2009 08:22:13 +0200
parents 3930f8ce6430
children e08d72bb988e
comparison
equal deleted inserted replaced
9376:d58086453171 9377:610bf90fce2a
878 } 878 }
879 879
880 void 880 void
881 octave_class::print_raw (std::ostream& os, bool) const 881 octave_class::print_raw (std::ostream& os, bool) const
882 { 882 {
883 unwind_protect::begin_frame ("octave_class_print"); 883 unwind_protect::frame_id_t uwp_frame = unwind_protect::begin_frame ();
884 884
885 unwind_protect_int (Vstruct_levels_to_print); 885 unwind_protect::protect_var (Vstruct_levels_to_print);
886 886
887 indent (os); 887 indent (os);
888 os << " <class " << class_name () << ">"; 888 os << " <class " << class_name () << ">";
889 newline (os); 889 newline (os);
890 890
891 unwind_protect::run_frame ("octave_class_print"); 891 unwind_protect::run_frame (uwp_frame);
892 } 892 }
893 893
894 bool 894 bool
895 octave_class::print_name_tag (std::ostream& os, const std::string& name) const 895 octave_class::print_name_tag (std::ostream& os, const std::string& name) const
896 { 896 {