debug/common: don't include iostream

This commit is contained in:
Danny Robson 2021-04-12 16:11:32 +10:00
parent 6de8ed4831
commit bb3aff28ce
2 changed files with 3 additions and 1 deletions

View File

@ -18,6 +18,9 @@
#include <utility> #include <utility>
#ifndef NDEBUG
#include <iostream>
#endif
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
#ifdef COMPILER_GCC #ifdef COMPILER_GCC

View File

@ -29,7 +29,6 @@
/// refer to variables which do not always exist, and current compiler /// refer to variables which do not always exist, and current compiler
/// implementations are a little picky here. /// implementations are a little picky here.
#ifndef NDEBUG #ifndef NDEBUG
#include <iostream>
#define DEBUG_ONLY(X) do { X; } while (0) #define DEBUG_ONLY(X) do { X; } while (0)
#else #else
#define DEBUG_ONLY(X) do { ; } while (0) #define DEBUG_ONLY(X) do { ; } while (0)