LiquidMenu_debug.h
Go to the documentation of this file.
#pragma once
#if LIQUIDMENU_DEBUG
#ifdef ARDUINO_ARCH_AVR
#include <Arduino.h>
#define DEBUG(x) Serial.print(x);
#define DEBUGLN(x) Serial.println(x);
#define DEBUG2(x, y) Serial.print(x, y);
#define DEBUGLN2(x, y) Serial.println(x, y);
#else
#define DEBUG(x) std::cout << x;
#define DEBUGLN(x) std::cout << x << std::endl;
#define DEBUG2(x, y) std::cout << x << y;
#define DEBUGLN2(x, y) std::cout << x << y << std::endl;
#endif
#else
#define DEBUG(x)
#define DEBUGLN(x)
#define DEBUG2(x, y)
#define DEBUGLN2(x, y)
#endif