Commit a764715f authored by Robert Scott James's avatar Robert Scott James

Changes to be committed:

	modified:   ../src/debug.h
parent ca78cbc7
#define KNRM "\x1B[0m"
#define KRED "\x1B[31m"
#define KGRN "\x1B[32m"
#define KYEL "\x1B[33m"
#define KBLU "\x1B[34m"
#define KMAG "\x1B[35m"
#define KCYN "\x1B[36m"
#define KWHT "\x1B[37m"
#define KNRM "\x1B[0m"
#define KRED "\x1B[31m"
#define KGRN "\x1B[32m"
#define KYEL "\x1B[33m"
#define KBLU "\x1B[34m"
#define KMAG "\x1B[35m"
#define KCYN "\x1B[36m"
#define KWHT "\x1B[37m"
#define STYLE_BOLD "\033[1m"
#define STYLE_NO_BOLD "\033[22m"
#ifndef NDEBUG
#define VERBOSE(a) std::cerr<<KWHT<<a<<KNRM<<std::endl
#define DEBUG(a) std::cerr<<KBLU<<a<<KNRM<<std::endl
#define WARN(a) std::cerr<<KYEL<<a<<KNRM<<std::endl
#define ERROR(a) std::cerr<<KRED<<a<<KNRM<<std::endl
#define CRIT(a) std::cerr<<KMAG<<"!! "<<KRED<<a<<KMAG<<" !!"<<KNRM<<std::endl
#define VERBOSE(a) std::cerr<<KWHT<<STYLE_BOLD<<a<<STYLE_NO_BOLD<<KNRM<<std::endl
#define DEBUG(a) std::cerr<<KBLU<<STYLE_BOLD<<a<<STYLE_NO_BOLD<<KNRM<<std::endl
#define WARN(a) std::cerr<<KYEL<<STYLE_BOLD<<a<<STYLE_NO_BOLD<<KNRM<<std::endl
#define ERROR(a) std::cerr<<KRED<<STYLE_BOLD<<a<<STYLE_NO_BOLD<<KNRM<<std::endl
#define CRIT(a) std::cerr<<KMAG<<STYLE_BOLD<<"!! "<<KRED<<a<<KMAG<<" !!"<<STYLE_NO_BOLD<<KNRM<<std::endl
#else
......@@ -24,3 +28,5 @@
#define CRIT(a)
#endif
#define INFO(a) std::cerr<<KWHT<<a<<KNRM<<std::endl
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment