summaryrefslogtreecommitdiff
path: root/include/common/error.h
blob: 22c2630451159a1005dd788461b79c13b65e35de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef UPEM_MORPHING_ERROR
#define UPEM_MORPHING_ERROR

/**
 * File: error.h
 */

/**
 * Constants: Common errors
 *
 * OUT_OF_MEMORY_ERROR - when memory cannot be allocated for the program
 */
#define OUT_OF_MEMORY_ERROR "Out of memory"

/**
 * Function: rage quit
 * Logs the supplied error message to stderr before exiting the program with an error status code.
 *
 * Parameters:
 *   *msg - error message to log
 */
void rage_quit(const char *msg);

#endif