24 #if ! defined (octave_unwind_prot_h) 25 #define octave_unwind_prot_h 1 27 #include "octave-config.h" 70 std::unique_ptr<elem> ptr (lifo.top ());
80 elem *ptr = lifo.top ();
86 size_t size (
void)
const {
return lifo.size (); }
103 void warn_unhandled_exception (
void)
const;
125 warn_unhandled_exception ();
132 #if defined (OCTAVE_USE_DEPRECATED_FUNCTIONS) 134 OCTAVE_DEPRECATED (4.2,
"use 'octave::unwind_protect' instead")
135 typedef
octave::unwind_protect unwind_protect;
137 OCTAVE_DEPRECATED (4.2, "use '
octave::unwind_protect_safe'
instead")
138 typedef
octave::unwind_protect_safe unwind_protect_safe;
virtual void add(elem *new_elem)
std::stack< elem * > lifo
create a structure array and initialize its values The dimensions of each cell array of values must match Singleton cells and non cell values are repeated so that they fill the entire array If the cells are empty
unwind_protect_safe(void)
~unwind_protect_safe(void)