1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-30 04:50:08 +00:00
CLK/Outputs/Log.hpp
2018-06-21 19:27:54 -04:00

39 lines
660 B
C++

//
// Log.hpp
// Clock Signal
//
// Created by Thomas Harte on 18/06/2018.
// Copyright © 2018 Thomas Harte. All rights reserved.
//
#ifndef Log_h
#define Log_h
#ifdef NDEBUG
#define LOG(x)
#define LOGNBR(x)
#define ERROR(x)
#define ERRORNBR(x)
#else
#include <iomanip>
#include <iostream>
#include <ios>
#define PADHEX(n) std::hex << std::setw(n) << std::right << std::setfill('0')
#define PADDEC(n) std::dec << std::setw(n) << std::right << std::setfill('0')
#define LOG(x) std::cout << x << std::endl
#define LOGNBR(x) std::cout << x
#define ERROR(x) std::cerr << x << std::endl
#define ERRORNBR(x) std::cerr << x
#endif
#endif /* Log_h */