120#define DEFAULT_COLORS NCCHANNELS_INITIALIZER(FG_R, FG_G, FG_B, BG_R, BG_G, BG_B)
121#define INVERTED_COLORS NCCHANNELS_INITIALIZER(BG_R, BG_G, BG_B, FG_R, FG_G, FG_B)
122#define RED_TEXT_COLORS NCCHANNELS_INITIALIZER(RED_R, RED_G, RED_B, BG_R, BG_G, BG_B)
125#define WALL_COLORS NCCHANNELS_INITIALIZER(BLUE_R, BLUE_G, BLUE_B, BROWN_R, BROWN_G, BROWN_B)
126#define EXIT_DOOR_COLORS NCCHANNELS_INITIALIZER(YELLOW_R, YELLOW_G, YELLOW_B, BG_R, BG_G, BG_B)
127#define KEY_COLORS NCCHANNELS_INITIALIZER(YELLOW_R, YELLOW_G, YELLOW_B, BG_R, BG_G, BG_B)
128#define GOBLIN_COLORS NCCHANNELS_INITIALIZER(RED_R, RED_G, RED_B, BG_R, BG_G, BG_B)
129#define HIDDEN_COLORS NCCHANNELS_INITIALIZER(GREY_R, GREY_G, GREY_B, GREY_R, GREY_G, GREY_B)
130#define START_DOOR_COLORS NCCHANNELS_INITIALIZER(GREEN_R, GREEN_G, GREEN_B, BG_R, BG_G, BG_B)
131#define FLOOR_COLORS NCCHANNELS_INITIALIZER(BG_R, BG_G, BG_B, BG_R, BG_G, BG_B)
132#define LIFE_FOUNTAIN_COLORS NCCHANNELS_INITIALIZER(BG_R, BG_G, BG_B, GREEN_R, GREEN_G, GREEN_B)
133#define MANA_FOUNTAIN_COLORS NCCHANNELS_INITIALIZER(BG_R, BG_G, BG_B, BLUE_R, BLUE_G, BLUE_B)
137#define MAX_STRING_LENGTH 256
138#define MAX_NAME_LENGTH 64
146#define COMMON_SUCCESS 0
149#define NULL_PTR_HANDLER_RETURN(ptr, return_value, modul, format, ...) \
151 log_msg(ERROR, modul, format, ##__VA_ARGS__); \
152 return return_value; \
155#define CHECK_ARG_RETURN(bool_expr, return_value, modul, format, ...) \
157 log_msg(ERROR, modul, format, ##__VA_ARGS__); \
158 return return_value; \
173 char characters[MAX_STRING_LENGTH];
memory_pool_t * main_memory_pool
Global memory pool for the application.
Header file for logging functionality of the game.
Exposes functions for working with the memory management.
String struct with a fixed maximum length, it is directly linked to the macro MAX_STRING_LENGTH.
2-dimensional vector struct