Newer
Older
Martin Beseda
committed
//
// Created by martin on 9/8/18.
//
#ifndef PROJECT_MESSAGE_H
#define PROJECT_MESSAGE_H
#include <iomanip>
#define COL_WIDTH 20
#define R_ALIGN std::setw(COL_WIDTH) << std::right

Michal Kravcenko
committed
#define COUT_INFO(inp) std::cout << std::flush << std::fixed << std::setprecision(12) << "INFO: " << inp << std::flush
Martin Beseda
committed
#ifdef L4N_DEBUG

Michal Kravcenko
committed
#define COUT_DEBUG(inp) assert(std::cerr << std::flush << std::fixed << std::setprecision(12) << "DEBUG: " << inp << std::flush)
#define WRITE_TO_OFS_DEBUG(ofs, msg) { if(ofs && ofs->is_open())\

Michal Kravcenko
committed
*ofs << std::fixed << std::setprecision(12) << "DEBUG: " << msg;\
Martin Beseda
committed
#else
#define COUT_DEBUG(inp)
#define WRITE_TO_OFS_DEBUG(ofs, msg)
Martin Beseda
committed
#endif // L4N_DEBUG
Martin Beseda
committed
Martin Beseda
committed
#endif //PROJECT_MESSAGE_H