summaryrefslogtreecommitdiff
path: root/include/common/error.h
blob: ab355b7b3ddda140d676c69bd6981645a395d307 (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
25
26
27
#ifndef UPEM_MORPHING_ERROR
#define UPEM_MORPHING_ERROR

/**
 * File: error.h
 *
 * Author:
 *   Pacien TRAN-GIRARD
 */

/**
 * 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