stacktrace_unimplemented-inl.inc 744 B

123456789101112131415161718192021222324
  1. #ifndef Y_ABSL_DEBUGGING_INTERNAL_STACKTRACE_UNIMPLEMENTED_INL_H_
  2. #define Y_ABSL_DEBUGGING_INTERNAL_STACKTRACE_UNIMPLEMENTED_INL_H_
  3. template <bool IS_STACK_FRAMES, bool IS_WITH_CONTEXT>
  4. static int UnwindImpl(void** /* result */, int* /* sizes */,
  5. int /* max_depth */, int /* skip_count */,
  6. const void* /* ucp */, int *min_dropped_frames) {
  7. if (min_dropped_frames != nullptr) {
  8. *min_dropped_frames = 0;
  9. }
  10. return 0;
  11. }
  12. namespace y_absl {
  13. Y_ABSL_NAMESPACE_BEGIN
  14. namespace debugging_internal {
  15. bool StackTraceWorksForTest() {
  16. return false;
  17. }
  18. } // namespace debugging_internal
  19. Y_ABSL_NAMESPACE_END
  20. } // namespace y_absl
  21. #endif // Y_ABSL_DEBUGGING_INTERNAL_STACKTRACE_UNIMPLEMENTED_INL_H_