frame_noop.ipp 950 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // Copyright Antony Polukhin, 2016-2019.
  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. #ifndef BOOST_STACKTRACE_DETAIL_FRAME_NOOP_IPP
  7. #define BOOST_STACKTRACE_DETAIL_FRAME_NOOP_IPP
  8. #include <boost/config.hpp>
  9. #ifdef BOOST_HAS_PRAGMA_ONCE
  10. # pragma once
  11. #endif
  12. #include <boost/stacktrace/frame.hpp>
  13. namespace boost { namespace stacktrace { namespace detail {
  14. std::string to_string(const frame* /*frames*/, std::size_t /*count*/) {
  15. return std::string();
  16. }
  17. } // namespace detail
  18. std::string frame::name() const {
  19. return std::string();
  20. }
  21. std::string frame::source_file() const {
  22. return std::string();
  23. }
  24. std::size_t frame::source_line() const {
  25. return 0;
  26. }
  27. std::string to_string(const frame& /*f*/) {
  28. return std::string();
  29. }
  30. }} // namespace boost::stacktrace
  31. #endif // BOOST_STACKTRACE_DETAIL_FRAME_NOOP_IPP