-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmdz_error.h
134 lines (109 loc) · 1.98 KB
/
mdz_error.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
/**
* \ingroup mdz libraries
*
* \author maxdz Software GmbH
*
* \par license
* This file is subject to the terms and conditions defined in file 'LICENSE.txt', which is part of this source code package.
*
* \par description
* mdz error enum for different mdz libraries
*
*/
#ifndef MDZ_ERROR_H
#define MDZ_ERROR_H
/**
* Error code
*/
enum mdz_error
{
/**
* No error
*/
MDZ_ERROR_NONE = 0,
/*
* Invalid license
*/
MDZ_ERROR_LICENSE /* = 1 */,
/**
* Invalid "data" parameter
*/
MDZ_ERROR_DATA /* = 2 */,
/**
* Invalid size
*/
MDZ_ERROR_SIZE /* = 3 */,
/**
* Invalid capacity
*/
MDZ_ERROR_CAPACITY /* = 4 */,
/**
* Size is zero
*/
MDZ_ERROR_ZERO_SIZE /* = 5 */,
/**
* Invalid size
*/
MDZ_ERROR_BIG_SIZE /* = 6 */,
/**
* Count is zero
*/
MDZ_ERROR_ZERO_COUNT /* = 7 */,
/**
* "Count" parameter is too big
*/
MDZ_ERROR_BIG_COUNT /* = 8 */,
/**
* "Left" parameter is too big
*/
MDZ_ERROR_BIG_LEFT /* = 9 */,
/**
* "Right" parameter is too big
*/
MDZ_ERROR_BIG_RIGHT /* = 10 */,
/**
* Invalid "items" parameter
*/
MDZ_ERROR_ITEMS /* = 11 */,
/**
* Invalid terminator
*/
MDZ_ERROR_TERMINATOR /* = 12 */,
/**
* Data and Items overlap
*/
MDZ_ERROR_OVERLAP /* = 13 */,
/**
* Memory allocation function is not set
*/
MDZ_ERROR_ALLOC_FUNC /* = 14 */,
/**
* Memory re-allocation function is not set
*/
MDZ_ERROR_REALLOC_FUNC /* = 15 */,
/**
* Memory free function is not set
*/
MDZ_ERROR_FREE_FUNC /* = 16 */,
/**
* Memory allocation error
*/
MDZ_ERROR_ALLOCATION /* = 17 */,
/**
* Container is attached
*/
MDZ_ERROR_ATTACHED /* = 18 */,
/**
* Container is attached
*/
MDZ_ERROR_REPLACEMENT_TYPE /* = 19 */,
/**
* Not enough capacity for replacement
*/
MDZ_ERROR_BIG_REPLACE /* = 20 */,
/**
* Data and Items overlap after replacement
*/
MDZ_ERROR_OVERLAP_REPLACE /* = 21 */
};
#endif