misc: Added utility method to allow working with stacks

This commit is contained in:
Justin Berger
2017-07-22 18:34:33 -06:00
parent f5d2988ea7
commit 39c2feaf8c
2 changed files with 17 additions and 0 deletions

View File

@@ -6,6 +6,7 @@
#include "cmConfigure.h" // IWYU pragma: keep
#include <iosfwd>
#include <stddef.h>
#include <string>
#include <vector>
@@ -138,6 +139,9 @@ public:
// Print the call stack below the top of the backtrace.
void PrintCallStack(std::ostream& out) const;
// Get the number of 'frames' in this backtrace
size_t Depth() const;
private:
struct Entry;