| 110 | int getDepth() const { return numCallers_ - skip_; } |
| 111 | |
| 112 | void* getFrame(int index) const { |
| 113 | int adjusted_index = index + skip_; |
| 114 | if (adjusted_index < 0 || adjusted_index >= numCallers_) { |
| 115 | return nullptr; |
| 116 | } |
| 117 | return callers_[adjusted_index]; |
| 118 | } |
| 119 | |
| 120 | private: |
| 121 | void* callers_[MAX_STACK_DEPTH]; |
no outgoing calls
no test coverage detected