2018-06-19 02:37:19 +00:00
|
|
|
//
|
|
|
|
// 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)
|
2018-06-21 23:27:54 +00:00
|
|
|
|
2018-06-19 02:37:19 +00:00
|
|
|
#define ERROR(x)
|
|
|
|
#define ERRORNBR(x)
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
2018-06-21 03:02:32 +00:00
|
|
|
#include <iomanip>
|
2018-06-19 02:37:19 +00:00
|
|
|
#include <iostream>
|
2018-06-21 03:02:32 +00:00
|
|
|
#include <ios>
|
2018-06-19 02:37:19 +00:00
|
|
|
|
2018-06-21 23:27:54 +00:00
|
|
|
#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')
|
|
|
|
|
2018-06-19 02:37:19 +00:00
|
|
|
#define LOG(x) std::cout << x << std::endl
|
|
|
|
#define LOGNBR(x) std::cout << x
|
2018-06-21 23:27:54 +00:00
|
|
|
|
2018-06-19 02:37:19 +00:00
|
|
|
#define ERROR(x) std::cerr << x << std::endl
|
|
|
|
#define ERRORNBR(x) std::cerr << x
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* Log_h */
|