summaryrefslogtreecommitdiff
path: root/fun_menu.h
blob: 27bce8bd7876ef27f4da8a895c6599c815f68fc1 (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
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 */