tp_utils.hpp 342 Bytes
Newer Older
Francois Tessier's avatar
Francois Tessier committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#ifndef TP_UTILS_H
#define TP_UTILS_H

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

#define RED     "\x1b[31m"
#define GREEN   "\x1b[32m"
#define BLUE    "\x1b[34m"
#define YELLOW  "\x1b[33m"
#define RESET   "\x1b[0m"

typedef enum { ERROR, WARNING, INFO, TIMING } msg_t;

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

#endif /* TP_UTILS_H */