1// (C) Copyright 2010 Daniel James
2// Distributed under the Boost Software License, Version 1.0. (See accompanying
3// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
4
5// See http://www.boost.org/libs/iostreams for documentation.
6
7#ifndef BOOST_IOSTREAMS_DETAIL_UNREACHABLE_RETURN_HPP_INCLUDED
8#define BOOST_IOSTREAMS_DETAIL_UNREACHABLE_RETURN_HPP_INCLUDED
9
10#if defined(_MSC_VER)
11# pragma once
12#endif
13
14#include <boost/config.hpp>
15
16#if defined(_MSC_VER) || defined(__GNUC__)
17#define BOOST_IOSTREAMS_UNREACHABLE_RETURN(x) \
18 BOOST_UNREACHABLE_RETURN(x)
19#else
20#define BOOST_IOSTREAMS_UNREACHABLE_RETURN(x) \
21 return x;
22#endif
23
24#endif
25

source code of boost/libs/iostreams/include/boost/iostreams/detail/config/unreachable_return.hpp