12345678910111213141516171819202122 |
- #ifndef BOOST_HISTOGRAM_DETAIL_DEBUG_HPP
- #define BOOST_HISTOGRAM_DETAIL_DEBUG_HPP
- #include <boost/config/pragma_message.hpp>
- BOOST_PRAGMA_MESSAGE("debug.hpp included")
- #include <boost/histogram/detail/type_name.hpp>
- #include <iostream>
- #define DEBUG(x) \
- std::cout << __FILE__ << ":" << __LINE__ << " [" \
- << boost::histogram::detail::type_name<decltype(x)>() << "] " #x "=" << x \
- << std::endl;
- #endif
|