You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
308 B
18 lines
308 B
|
3 years ago
|
#pragma once
|
||
|
|
|
||
|
|
#include <asio/detail/throw_exception.hpp>
|
||
|
|
|
||
|
|
namespace asio::detail {
|
||
|
|
|
||
|
|
void fatal_exception(const char *message);
|
||
|
|
|
||
|
|
template <typename Exception>
|
||
|
|
void throw_exception(
|
||
|
|
const Exception &e
|
||
|
|
ASIO_SOURCE_LOCATION_PARAM)
|
||
|
|
{
|
||
|
|
fatal_exception(e.what());
|
||
|
|
}
|
||
|
|
|
||
|
|
} // namespace asio::detail
|