diff options
author | noodle <shawtynoodle@gmail.com> | 2023-07-10 15:40:08 +0300 |
---|---|---|
committer | noodle <shawtynoodle@gmail.com> | 2023-07-10 15:40:08 +0300 |
commit | b7ac144cd2d242791938b51569effb7a1378a332 (patch) | |
tree | 0db39dc6d72a96697707c662c32f4dcdb99372b7 /fun_menu.h | |
parent | 35eacac40f265aad47bf25d10f3ecd3670b79b2f (diff) |
Add files
Diffstat (limited to 'fun_menu.h')
-rw-r--r-- | fun_menu.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/fun_menu.h b/fun_menu.h new file mode 100644 index 0000000..27bce8b --- /dev/null +++ b/fun_menu.h @@ -0,0 +1,28 @@ +#ifndef FUN_MENU_H +#define FUN_MENU_H + +// dump core +void dump_core(void); + +// define error codes +enum ErrorCode { + ERROR_OK, + ERROR_LOCALE_SETTING, + ERROR_COLOR_STARTING, + ERROR_CURSES_SETTING, + ERROR_MEMORY_ALLOCATION, + ERROR_CHARACTER_INPUT, + ERROR_CHARACTER_OUTPUT, + ERROR_WINDOW_CREATION, + ERROR_WINDOW_DRAWING, + ERROR_WINDOW_RENDERING, + ERROR_COLOR_PAIR_DEFINITION, + ERROR_OPTION_SETTING, + ERROR_UNKNOWN, + ERROR_MAX, +}; + +// hold errors of richwin.c +static enum ErrorCode richwin_error_code = ERROR_OK; + +#endif /* FUN_MENU_H */ |