/
BirdLeon
/
ROBLOX2016
Обзор
Документация
Войти
/
BirdLeon
/
ROBLOX2016
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
Library/cpp-netlib/boost/network/detail/debug.hpp
27 строк
935 B
PatoFlamejanteTV
full source code
19 дек 2024, 19:11
19 дек 2024, 19:11
05db15d
Код
Авторство
О чём код?
#ifndef BOOST_NETWORK_DEBUG_HPP_20110410 #define BOOST_NETWORK_DEBUG_HPP_20110410 // (c) Copyright 2011 Dean Michael Berris. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) /** BOOST_NETWORK_MESSAGE is a debugging macro used by cpp-netlib to print out network-related errors through standard error. This is only useful when BOOST_NETWORK_DEBUG is turned on. Otherwise the macro amounts to a no-op. */ #ifdef BOOST_NETWORK_DEBUG #include <iostream> #ifndef BOOST_NETWORK_MESSAGE #define BOOST_NETWORK_MESSAGE(msg) \ std::cerr << "[DEBUG " << __FILE__ << ':' << __LINE__ << "]: " << msg \ << std::endl; #endif #else #ifndef BOOST_NETWORK_MESSAGE #define BOOST_NETWORK_MESSAGE(msg) #endif #endif #endif /* end of include guard: BOOST_NETWORK_DEBUG_HPP_20110410 */