tp_utils.hpp 374 Bytes
Newer Older
Francois Tessier's avatar
Francois Tessier committed
1 2 3 4 5 6 7 8 9
#ifndef TP_UTILS_H
#define TP_UTILS_H

#include <stdio.h>
#include <stdlib.h>

#define RED     "\x1b[31m"
#define GREEN   "\x1b[32m"
#define YELLOW  "\x1b[33m"
10 11
#define BLUE    "\x1b[34m"
#define MAGENTA "\x1b[35m"
Francois Tessier's avatar
Francois Tessier committed
12 13
#define RESET   "\x1b[0m"

14
typedef enum { ERROR, WARNING, INFO, TIME, DEBUG } msg_t;
Francois Tessier's avatar
Francois Tessier committed
15 16 17 18

void printMsg ( msg_t type, char* format, ... );

#endif /* TP_UTILS_H */