GNU Octave  3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions File Reference
#include "defun.h"
#include "ov-oncleanup.h"
#include "ov-fcn.h"
#include "ov-usr-fcn.h"
#include "pt-misc.h"
#include "toplev.h"
Include dependency graph for

Go to the source code of this file.


 DEFUN (onCleanup, args,,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {@var{c} =} onCleanup (@var{action})\n\ Create a special object that executes a given function upon destruction.\n\ If the object is copied to multiple variables (or cell or struct array\n\ elements) or returned from a function, @var{action} will be executed after\n\ clearing the last copy of the object. Note that if multiple local onCleanup\n\ variables are created, the order in which they are called is unspecified.\n\ For similar functionality @xref{The unwind_protect Statement}.\n\ @end deftypefn")
static void warn_save_load (void)

Function Documentation

DEFUN ( onCleanup  ,

Definition at line 188 of file

References print_usage().

static void warn_save_load ( void  )