Realistic 3D camera system
3D camera system components
throw_error.hpp
Go to the documentation of this file.
1 //
2 // detail/throw_error.hpp
3 // ~~~~~~~~~~~~~~~~~~~~~~
4 //
5 // Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com)
6 //
7 // Distributed under the Boost Software License, Version 1.0. (See accompanying
8 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9 //
10 
11 #ifndef ASIO_DETAIL_THROW_ERROR_HPP
12 #define ASIO_DETAIL_THROW_ERROR_HPP
13 
14 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
15 # pragma once
16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
17 
18 #include "asio/detail/config.hpp"
19 #include "asio/error_code.hpp"
20 
22 
23 namespace asio {
24 namespace detail {
25 
27 
29  const char* location);
30 
31 inline void throw_error(const asio::error_code& err)
32 {
33  if (err)
34  do_throw_error(err);
35 }
36 
37 inline void throw_error(const asio::error_code& err,
38  const char* location)
39 {
40  if (err)
41  do_throw_error(err, location);
42 }
43 
44 } // namespace detail
45 } // namespace asio
46 
48 
49 #if defined(ASIO_HEADER_ONLY)
51 #endif // defined(ASIO_HEADER_ONLY)
52 
53 #endif // ASIO_DETAIL_THROW_ERROR_HPP
void do_throw_error(const asio::error_code &err)
Definition: throw_error.ipp:28
void throw_error(const asio::error_code &err)
Definition: throw_error.hpp:31
Class to represent an error code value.
Definition: error_code.hpp:80
#define ASIO_DECL
Definition: config.hpp:43