blob: 1de856a29b24e4ef19b2985c289625c8d7946d1e [file] [log] [blame]
Jeff Thompson86b6d642013-10-17 15:01:56 -07001// (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 NDNBOOST_IOSTREAMS_DETAIL_UNREACHABLE_RETURN_HPP_INCLUDED
8#define NDNBOOST_IOSTREAMS_DETAIL_UNREACHABLE_RETURN_HPP_INCLUDED
9
10#if defined(_MSC_VER) && (_MSC_VER >= 1020)
11# pragma once
12#endif
13
14#include <ndnboost/config.hpp>
15
16// If Boost.Exception has NDNBOOST_ATTRIBUTE_NORETURN
17#if defined(_MSC_VER) || defined(__GNUC__)
18#define NDNBOOST_IOSTREAMS_UNREACHABLE_RETURN(x) \
19 NDNBOOST_UNREACHABLE_RETURN(x)
20#else
21#define NDNBOOST_IOSTREAMS_UNREACHABLE_RETURN(x) \
22 return x;
23#endif
24
25#endif