| 28 | typedef pair<Array<void*, StackLimit>, size_t> StackCapture; |
| 29 | |
| 30 | inline StackCapture captureStack() { |
| 31 | StackCapture stackCapture; |
| 32 | stackCapture.second = backtrace(stackCapture.first.ptr(), StackLimit); |
| 33 | return stackCapture; |
| 34 | } |
| 35 | |
| 36 | OutputProxy outputStack(StackCapture stack) { |
| 37 | return OutputProxy([stack = std::move(stack)](std::ostream & os) { |
no test coverage detected