Mercurial > octave-nkf
comparison liboctave/util/unwind-prot.h @ 20577:c547458dc10e
eliminate error_state from most header files
* defun-int.h, event-queue.h, graphics.in.h, oct-handle.h,
ov-classdef.h, misc/f77-fcn.h, unwind-prot.h:
Eliminate use of global error_state variable.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 03 Oct 2015 13:20:28 -0400 |
parents | 4197fc428c7d |
children |
comparison
equal
deleted
inserted
replaced
20576:0fc9b572e566 | 20577:c547458dc10e |
---|---|
38 public: | 38 public: |
39 | 39 |
40 unwind_protect (void) : lifo () { } | 40 unwind_protect (void) : lifo () { } |
41 | 41 |
42 // Destructor should not raise an exception, so all actions | 42 // Destructor should not raise an exception, so all actions |
43 // registered should be exception-safe (but setting error_state is | 43 // registered should be exception-safe. If you're not sure, see |
44 // allowed). If you're not sure, see unwind_protect_safe. | 44 // unwind_protect_safe. |
45 | 45 |
46 ~unwind_protect (void) { run (); } | 46 ~unwind_protect (void) { run (); } |
47 | 47 |
48 virtual void add (elem *new_elem) | 48 virtual void add (elem *new_elem) |
49 { | 49 { |