4
Copyright (C) 2005-2013 John W. Eaton
6
This file is part of Octave.
8
Octave is free software; you can redistribute it and/or modify it
9
under the terms of the GNU General Public License as published by the
10
Free Software Foundation; either version 3 of the License, or (at your
11
option) any later version.
13
Octave is distributed in the hope that it will be useful, but WITHOUT
14
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
18
You should have received a copy of the GNU General Public License
19
along with Octave; see the file COPYING. If not, see
20
<http://www.gnu.org/licenses/>.
24
#if !defined (octave_oct_errno_h)
25
#define octave_oct_errno_h 1
42
~octave_errno (void) { }
44
static bool instance_ok (void);
46
static void cleanup_instance (void) { delete instance; instance = 0; }
48
static int lookup (const std::string& name);
50
static octave_scalar_map list (void);
52
static int get (void) { return errno; }
54
static int set (int val)
63
std::map<std::string, int> errno_tbl;
65
static octave_errno *instance;
67
int do_lookup (const std::string& name);
69
octave_scalar_map do_list (void);