https://github.com/masashi-y/depccg
Raw File
Tip revision: 7b597fceaef6a86e4cbf9ec5a10647ba908473ea authored by Yoshikawa Masashi on 27 April 2019, 12:17:00 UTC
update
Tip revision: 7b597fc
debug.h

#include <stdexcept>

#ifndef INCLUDE_DEBUG_H_
#define INCLUDE_DEBUG_H_

#define print(value) std::cout << (value) << std::endl;
#define NO_IMPLEMENTATION { throw std::runtime_error(__PRETTY_FUNCTION__); }
#define GREEN(str) std::cerr << "\033[32m" << str << "\033[93m" << std::endl
#define RED(str) std::cerr << "\033[31m" << str << "\033[93m" << std::endl
#define BLUE(str) std::cerr << "\033[34m" << str << "\033[93m" << std::endl
#define CYAN(str) std::cerr << "\033[36m" << str << "\033[93m" << std::endl
#define POPPED RED("********POPPED********")
#define ACCEPT GREEN("********ACCEPT********")
#define TREETYPE(str) BLUE("********" << str << "********")
#define DEBUG(x) std::cerr << #x": " << (x) << std::endl

#endif

back to top