Depth returns the number of frames in the call stack.
()
| 202 | |
| 203 | // Depth returns the number of frames in the call stack. |
| 204 | func (s *Callstack) Depth() int { return len(*s) } |
| 205 | |
| 206 | // IsEmpty returns true if the callstack has no frames. |
| 207 | func (s *Callstack) IsEmpty() bool { return s.Depth() == 0 } |
no outgoing calls