Survival Royale 1.0.0
A very simple yet funny card game.
Loading...
Searching...
No Matches
consts.h File Reference

Declaration of constants used by the modules. More...

Go to the source code of this file.

Macros

#define EXIT_ALLOC_FAILURE   2
 Exit code when dynamic memory allocation fails.
#define EXIT_POP_FAILURE   3
 Exit code when popping from a vector fails.
#define EXIT_ILLEGAL_INDEX_FAILURE   4
 Exit code for requests with illegal indexes.
#define EXIT_CLI_ILLEGAL   5
 Exit code when the CLI options are illegal.
#define EXIT_TERMINAL_TOO_SMALL   6
 Exit code when the terminal is too small for the TUI.
#define EXIT_WINDOWS_TERMINAL_HOST_NOT_SUPPORTED   7
 Exit code when the terminal's host process, on Windows, is not supported.
#define ACTION_NOTHING   0
 With this action code, the program does nothing.
#define ACTION_IGNORE_CONFIG_FILE   1
 With this action code, the program ignores the configuration file when loading the game configuration.
#define ACTION_DONT_ASK_CONFIG_OPTIONS   2
 With this action code, the program does not ask to the user the game configuration when loading the game configuration.
#define ACTION_SAVE_TO_FILE   4
 With this action code, the program saves the used game configuration to file.
#define ACTION_BE_VERBOSE   8
 With this action code, the program has a verbose logging behaviour.
#define ACTION_USE_TUI   16
 With this action code, the program will use te terminal user interface (TUI) when specified.
#define ACTION_GO   32
 With this action code, the program starts a match.
#define ACTION_HELP   33
 With this action code, the program has printed help messages.

Detailed Description

Declaration of constants used by the modules.

Definition in file consts.h.

Macro Definition Documentation

◆ ACTION_BE_VERBOSE

#define ACTION_BE_VERBOSE   8

With this action code, the program has a verbose logging behaviour.

Definition at line 43 of file consts.h.

◆ ACTION_DONT_ASK_CONFIG_OPTIONS

#define ACTION_DONT_ASK_CONFIG_OPTIONS   2

With this action code, the program does not ask to the user the game configuration when loading the game configuration.

Definition at line 39 of file consts.h.

◆ ACTION_GO

#define ACTION_GO   32

With this action code, the program starts a match.

Definition at line 47 of file consts.h.

◆ ACTION_HELP

#define ACTION_HELP   33

With this action code, the program has printed help messages.

Definition at line 49 of file consts.h.

◆ ACTION_IGNORE_CONFIG_FILE

#define ACTION_IGNORE_CONFIG_FILE   1

With this action code, the program ignores the configuration file when loading the game configuration.

Definition at line 37 of file consts.h.

◆ ACTION_NOTHING

#define ACTION_NOTHING   0

With this action code, the program does nothing.

Definition at line 35 of file consts.h.

◆ ACTION_SAVE_TO_FILE

#define ACTION_SAVE_TO_FILE   4

With this action code, the program saves the used game configuration to file.

Definition at line 41 of file consts.h.

◆ ACTION_USE_TUI

#define ACTION_USE_TUI   16

With this action code, the program will use te terminal user interface (TUI) when specified.

Definition at line 45 of file consts.h.

◆ EXIT_ALLOC_FAILURE

#define EXIT_ALLOC_FAILURE   2

Exit code when dynamic memory allocation fails.

Definition at line 22 of file consts.h.

◆ EXIT_CLI_ILLEGAL

#define EXIT_CLI_ILLEGAL   5

Exit code when the CLI options are illegal.

Definition at line 28 of file consts.h.

◆ EXIT_ILLEGAL_INDEX_FAILURE

#define EXIT_ILLEGAL_INDEX_FAILURE   4

Exit code for requests with illegal indexes.

Definition at line 26 of file consts.h.

◆ EXIT_POP_FAILURE

#define EXIT_POP_FAILURE   3

Exit code when popping from a vector fails.

Definition at line 24 of file consts.h.

◆ EXIT_TERMINAL_TOO_SMALL

#define EXIT_TERMINAL_TOO_SMALL   6

Exit code when the terminal is too small for the TUI.

Definition at line 30 of file consts.h.

◆ EXIT_WINDOWS_TERMINAL_HOST_NOT_SUPPORTED

#define EXIT_WINDOWS_TERMINAL_HOST_NOT_SUPPORTED   7

Exit code when the terminal's host process, on Windows, is not supported.

Definition at line 32 of file consts.h.