1 // Copyright 2000 - 2007 Google Inc.
2 // All rights reserved.
4 // Routines to extract the current stack trace. These functions are
7 #ifndef BASE_STACKTRACE_H_
8 #define BASE_STACKTRACE_H_
12 _START_GOOGLE_NAMESPACE_
14 // This is similar to the GetStackFrames routine, except that it returns
15 // the stack trace only, and not the stack frame sizes as well.
21 // int depth = GetStackFrames(result, 10, 1);
29 // "result" must not be NULL.
30 extern int GetStackTrace(void** result, int max_depth, int skip_count);
32 _END_GOOGLE_NAMESPACE_
34 #endif // BASE_STACKTRACE_H_