/*! \file debug.h * * \brief debugging/logging support * */ #ifndef XSTREAM_DEBUG_H #define XSTREAM_DEBUG_H #include #if ENABLE_LOGGING #include namespace xstream{ extern std::ostream* debug; } // namespace xstream /*! \brief logging macro using an ostream */ #define LOG(d) do{(*debug)<<"["<<(__FILE__)<<": "<<__LINE__<<"]\t"<