]> git.lizzy.rs Git - nothing.git/blob - src/error.h
(#117) TODO for cxd integration into the build
[nothing.git] / src / error.h
1 #ifndef ERROR_H_
2 #define ERROR_H_
3
4 typedef enum error_type_t {
5     ERROR_TYPE_OK = 0,
6     ERROR_TYPE_LIBC,
7     ERROR_TYPE_SDL2,
8     ERROR_TYPE_SDL2_MIXER,
9
10     ERROR_TYPE_N
11 } error_type_t;
12
13 error_type_t current_error(void);
14 void throw_error(error_type_t error_type);
15 void reset_error(void);
16 void print_current_error_msg(const char *user_prefix);
17 void print_error_msg(error_type_t error_type, const char *user_prefix);
18
19 #endif  // ERROR_H_