src/unwind/unwind_with_nothing.cpp
raw| 1 | #ifdef CPPTRACE_UNWIND_WITH_NOTHING |
| 2 | |
| 3 | #include "unwind/unwind.hpp" |
| 4 | |
| 5 | #include <cstddef> |
| 6 | #include <vector> |
| 7 | |
| 8 | CPPTRACE_BEGIN_NAMESPACE |
| 9 | namespace detail { |
| 10 | std::vector<frame_ptr> capture_frames(std::size_t, std::size_t) { |
| 11 | return {}; |
| 12 | } |
| 13 | |
| 14 | CPPTRACE_FORCE_NO_INLINE |
| 15 | std::size_t safe_capture_frames(frame_ptr*, std::size_t, std::size_t, std::size_t) { |
| 16 | return 0; |
| 17 | } |
| 18 | |
| 19 | bool has_safe_unwind() { |
| 20 | return false; |
| 21 | } |
| 22 | } |
| 23 | CPPTRACE_END_NAMESPACE |
| 24 | |
| 25 | #endif |