]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/stacktrace/detail/safe_dump_noop.ipp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / boost / stacktrace / detail / safe_dump_noop.ipp
1 // Copyright Antony Polukhin, 2016-2017.
2 //
3 // Distributed under the Boost Software License, Version 1.0. (See
4 // accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
6
7 #ifndef BOOST_STACKTRACE_DETAIL_SAFE_DUMP_NOOP_IPP
8 #define BOOST_STACKTRACE_DETAIL_SAFE_DUMP_NOOP_IPP
9
10 #include <boost/config.hpp>
11 #ifdef BOOST_HAS_PRAGMA_ONCE
12 # pragma once
13 #endif
14
15 #include <boost/stacktrace/safe_dump_to.hpp>
16
17 namespace boost { namespace stacktrace { namespace detail {
18
19
20 #if defined(BOOST_WINDOWS)
21 std::size_t dump(void* /*fd*/, const native_frame_ptr_t* /*frames*/, std::size_t /*frames_count*/) BOOST_NOEXCEPT {
22 return 0;
23 }
24 #else
25 std::size_t dump(int /*fd*/, const native_frame_ptr_t* /*frames*/, std::size_t /*frames_count*/) BOOST_NOEXCEPT {
26 return 0;
27 }
28 #endif
29
30
31 std::size_t dump(const char* /*file*/, const native_frame_ptr_t* /*frames*/, std::size_t /*frames_count*/) BOOST_NOEXCEPT {
32 return 0;
33 }
34
35 }}} // namespace boost::stacktrace::detail
36
37 #endif // BOOST_STACKTRACE_DETAIL_SAFE_DUMP_NOOP_IPP