Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alexbevi
GitHub Repository: alexbevi/BizHawk
Path: blob/master/yabause/src/error.h
2 views
1
/* Copyright 2005-2006 Theo Berkau
2
3
This file is part of Yabause.
4
5
Yabause is free software; you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation; either version 2 of the License, or
8
(at your option) any later version.
9
10
Yabause is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
14
15
You should have received a copy of the GNU General Public License
16
along with Yabause; if not, write to the Free Software
17
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
*/
19
20
#ifndef ERROR_H
21
#define ERROR_H
22
23
#define YAB_ERR_UNKNOWN 0
24
#define YAB_ERR_FILENOTFOUND 1
25
#define YAB_ERR_MEMORYALLOC 2
26
#define YAB_ERR_FILEREAD 3
27
#define YAB_ERR_FILEWRITE 4
28
#define YAB_ERR_CANNOTINIT 5
29
30
#define YAB_ERR_SH2INVALIDOPCODE 6
31
#define YAB_ERR_SH2READ 7
32
#define YAB_ERR_SH2WRITE 8
33
34
#define YAB_ERR_SDL 9
35
36
#define YAB_ERR_OTHER 10
37
38
void YabSetError(int type, const void *extra);
39
#endif
40
41