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