-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherror.h
More file actions
27 lines (21 loc) · 713 Bytes
/
error.h
File metadata and controls
27 lines (21 loc) · 713 Bytes
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
#include <cstdio>
#include "BF.h"
/* Error codes used in PrintError */
#define CSE_OK 0
#define CSE_CANNOTCREATEFILE -1
#define CSE_CANNOTOPENFILE -2
#define CSE_CANNOTALLOCATEBLOCK -3
#define CSE_INCOMPLETEREAD -4
#define CSE_INCOMPLETEWRITE -5
#define CSE_CANNOTCLOSEFILE -6
#define CSE_CANNOTCREATEDIR -7
#define CSE_BLOCKALREADYEXISTS -8
#define CSE_INTERNALERROR -9
#define CSE_NOTCOLUMNFILE -10
#define CSE_UNKNOWNFIELD -11
#define CSE_COMPARABLE -13
#define CSE_PRINTABLE -14
#define CSE_NULLARGUMENT -15
#define CSE_DIRALREADYEXISTS -16
extern int CS_errno; // Last error detected.
void CS_PrintError(const char *errString); // Prints a custom message and another one, specific for the last error.