OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #ifndef RUNTIME_LIB_STACKTRACE_H_ | 5 #ifndef RUNTIME_LIB_STACKTRACE_H_ |
6 #define RUNTIME_LIB_STACKTRACE_H_ | 6 #define RUNTIME_LIB_STACKTRACE_H_ |
7 | 7 |
8 namespace dart { | 8 namespace dart { |
9 | 9 |
10 class Stacktrace; | 10 class StackTrace; |
11 | 11 |
12 // Creates a Stacktrace object from the current stack. Skips the | 12 // Creates a StackTrace object from the current stack. Skips the |
13 // first skip_frames Dart frames. | 13 // first skip_frames Dart frames. |
14 // | 14 // |
15 // This function is exposed to provide stack trace printing in | 15 // This function is exposed to provide stack trace printing in |
16 // assertion failures, etc. | 16 // assertion failures, etc. |
17 const Stacktrace& GetCurrentStacktrace(int skip_frames); | 17 const StackTrace& GetCurrentStackTrace(int skip_frames); |
18 | 18 |
19 } // namespace dart | 19 } // namespace dart |
20 | 20 |
21 #endif // RUNTIME_LIB_STACKTRACE_H_ | 21 #endif // RUNTIME_LIB_STACKTRACE_H_ |
OLD | NEW |