diff options
Diffstat (limited to 'include/common/error.h')
-rw-r--r-- | include/common/error.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/common/error.h b/include/common/error.h new file mode 100644 index 0000000..522d646 --- /dev/null +++ b/include/common/error.h | |||
@@ -0,0 +1,24 @@ | |||
1 | #ifndef UPEM_MORPHING_ERROR | ||
2 | #define UPEM_MORPHING_ERROR | ||
3 | |||
4 | /** | ||
5 | * File: error.h | ||
6 | */ | ||
7 | |||
8 | /** | ||
9 | * Constants: Common errors | ||
10 | * | ||
11 | * OUT_OF_MEMORY_ERROR - when memory cannot be allocated for the program | ||
12 | */ | ||
13 | #define OUT_OF_MEMORY_ERROR "Out of memory" | ||
14 | |||
15 | /** | ||
16 | * Function: rage quit | ||
17 | * Logs the supplied error message to stderr before exiting the program with an error status code. | ||
18 | * | ||
19 | * Parameters; | ||
20 | * *msg - error message to log | ||
21 | */ | ||
22 | void rage_quit(const char *msg); | ||
23 | |||
24 | #endif | ||