24 #if !defined (octave_unwind_prot_h)
25 #define octave_unwind_prot_h 1
53 void add (
void (*fcn) (
void *),
void *ptr = 0) GCC_ATTR_DEPRECATED
58 operator bool (
void)
const {
return ! empty (); }
60 void run_top (
void) GCC_ATTR_DEPRECATED { run_first (); }
67 std::auto_ptr<elem> ptr (lifo.top ());
73 void run_top (
int num) GCC_ATTR_DEPRECATED { run (num); }
75 void discard_top (
void) GCC_ATTR_DEPRECATED { discard_first (); }
81 elem *ptr = lifo.top ();
87 void discard_top (
int num) GCC_ATTR_DEPRECATED { discard (num); }
89 size_t size (
void)
const {
return lifo.size (); }
115 static void gripe_exception (
void);
void run_top(int num) GCC_ATTR_DEPRECATED
~unwind_protect_safe(void)
std::stack< elem * > lifo
virtual void add(elem *new_elem)
void add(void(*fcn)(void *), void *ptr=0) GCC_ATTR_DEPRECATED
void discard_top(int num) GCC_ATTR_DEPRECATED
void discard_top(void) GCC_ATTR_DEPRECATED
void run_top(void) GCC_ATTR_DEPRECATED
unwind_protect_safe(void)