ScummVM API documentation
errors.h
1/* ScummVM - Graphic Adventure Engine
2 *
3 * ScummVM is the legal property of its developers, whose names
4 * are too numerous to list here. Please refer to the COPYRIGHT
5 * file distributed with this source distribution.
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 *
20 */
21
22#ifndef HODJNPODJ_DFA_ERRORS_H
23#define HODJNPODJ_DFA_ERRORS_H
24
25namespace Bagel {
26namespace HodjNPodj {
27namespace DFA {
28
29//
30// error reporting codes
31//
32typedef unsigned char ERROR_CODE;
33#define ERR_NONE 0 // no error
34#define ERR_MEMORY 1 // not enough memory
35#define ERR_FOPEN 2 // error opening a file
36#define ERR_FCLOSE 3 // error closing a file
37#define ERR_FREAD 4 // error reading a file
38#define ERR_FWRITE 5 // error writing a file
39#define ERR_FSEEK 6 // error seeking a file
40#define ERR_FDEL 7 // error deleting a file
41#define ERR_FFIND 8 // could not find file
42#define ERR_FTYPE 9 // invalid file type
43#define ERR_PATH 10 // invalid path or filename
44#define ERR_DISK 11 // unrecoverable disk error
45#define ERR_UNKNOWN 12 // unknown error
46
47#define ERR_FUTURE1 13 // future use
48#define ERR_FUTURE2 14 //
49#define ERR_FUTURE3 15 //
50#define ERR_FUTURE4 16 //
51#define ERR_FUTURE5 17 // future use
52
53} // namespace DFA
54} // namespace HodjNPodj
55} // namespace Bagel
56
57#endif