Claude Chappe' Curse - A C Game
Loading...
Searching...
No Matches
enhanced_print.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
term/color.h
>
4
#ifdef DEBUG
5
#define PRINT_ERROR(x, ...) fprintf(stderr, BOLD_RED "[ERROR] " x RESET , ##__VA_ARGS__);
6
#define PRINT_INFO(x, ...) fprintf(stdout, GREY "[INFO] " x RESET , ##__VA_ARGS__);
7
#define PRINT_WARNING(x, ...) fprintf(stderr, YELLOW "[WARNING] " x RESET , ##__VA_ARGS__);
8
#define PRINT_SERVER_INFO(x, ...) fprintf(stdout, BOLD_CYAN "[SERVER INFO] " x RESET , ##__VA_ARGS__);
9
#define PRINT_CLIENT_INFO(x, ...) fprintf(stdout, BOLD_MAGENTA "[CLIENT INFO] " x RESET , ##__VA_ARGS__);
10
#define PRINT_SUCCESS(x, ...) fprintf(stdout, BOLD_GREEN "[SUCCESS] " x RESET , ##__VA_ARGS__);
11
#else
12
#define PRINT_ERROR(x, ...)
13
#define PRINT_INFO(x, ...)
14
#define PRINT_WARNING(x, ...)
15
#define PRINT_SERVER_INFO(x, ...)
16
#define PRINT_CLIENT_INFO(x, ...)
17
#define PRINT_SUCCESS(x, ...)
18
#endif
color.h
Generated by
1.9.8