|
Trace Engine
A Raycaster Engine in C
|
Data Structures | |
| struct | message_info |
Macros | |
| #define | ANSI_COLOR_RED "\x1b[31m" |
| #define | ANSI_COLOR_GREEN "\x1b[32m" |
| #define | ANSI_COLOR_YELLOW "\x1b[33m" |
| #define | ANSI_COLOR_CYAN "\x1b[36m" |
| #define | ANSI_COLOR_WHITE "\x1b[37m" |
| #define | ANSI_COLOR_GREY "\x1b[90m" |
| #define | ANSI_COLOR_RESET "\x1b[0m" |
| #define | ANSI_BOLD "\e[1m" |
| #define | DATA_COLOR ANSI_COLOR_GREY |
| #define | DEBUG_COLOR ANSI_COLOR_GREEN |
| #define | INFO_COLOR ANSI_COLOR_CYAN |
| #define | WARNING_COLOR ANSI_COLOR_YELLOW |
| #define | ERROR_COLOR ANSI_COLOR_RED ANSI_BOLD |
Functions | |
| void | print_message (const message_info info, const char *message, va_list arg) |
| void | log_message (const log_levels_t log_level, const char *file_name, const int line, const char *message,...) |
| #define ANSI_BOLD "\e[1m" |
| #define ANSI_COLOR_CYAN "\x1b[36m" |
| #define ANSI_COLOR_GREEN "\x1b[32m" |
| #define ANSI_COLOR_GREY "\x1b[90m" |
| #define ANSI_COLOR_RED "\x1b[31m" |
| #define ANSI_COLOR_RESET "\x1b[0m" |
| #define ANSI_COLOR_WHITE "\x1b[37m" |
| #define ANSI_COLOR_YELLOW "\x1b[33m" |
| #define DATA_COLOR ANSI_COLOR_GREY |
| #define DEBUG_COLOR ANSI_COLOR_GREEN |
| #define ERROR_COLOR ANSI_COLOR_RED ANSI_BOLD |
| #define INFO_COLOR ANSI_COLOR_CYAN |
| #define WARNING_COLOR ANSI_COLOR_YELLOW |
| void log_message | ( | const log_levels_t | log_level, |
| const char * | file_name, | ||
| const int | line, | ||
| const char * | message, | ||
| ... | |||
| ) |
Prints to the standard output the given message formated with the given parameters.
| log_level | The message importance level, this is used to include a keyword (DEBUG, INFO, WARNING and ERROR) |
| file_name | The file name of the caller |
| line | The line of the call |
| message | The text to print |
| void print_message | ( | const message_info | info, |
| const char * | message, | ||
| va_list | arg | ||
| ) |