35 lines
638 B
C++
35 lines
638 B
C++
#ifndef AH_SETTINGSWRAPPER_HPP
|
|
#define AH_SETTINGSWRAPPER_HPP
|
|
|
|
#include "NamespaceSettings.hpp"
|
|
|
|
// ---- User Settings ---- //
|
|
// ======================= //
|
|
#include "Settings.hpp"
|
|
|
|
AH_DIAGNOSTIC_WERROR() // Enable errors on warnings
|
|
|
|
#define AH_IS_EMPTY_HELPER(x) x##1
|
|
#define AH_IS_EMPTY(x) AH_IS_EMPTY_HELPER(x) == 1
|
|
|
|
#if AH_IS_EMPTY(DEBUG_OUT)
|
|
#undef DEBUG_OUT
|
|
#endif
|
|
|
|
#ifndef ARDUINO
|
|
#ifdef DEBUG_OUT
|
|
#undef DEBUG_OUT
|
|
#ifndef NO_DEBUG_PRINTS
|
|
#define DEBUG_OUT std::cout
|
|
#endif
|
|
#endif
|
|
#endif
|
|
|
|
AH_DIAGNOSTIC_POP()
|
|
|
|
// ------- Debug ------- //
|
|
// ===================== //
|
|
#include <AH/Debug/Debug.hpp>
|
|
|
|
#endif // AH_SETTINGSWRAPPER_HPP
|