Go to the documentation of this file.
21 #ifndef ABSL_DEBUGGING_INTERNAL_STACKTRACE_CONFIG_H_
22 #define ABSL_DEBUGGING_INTERNAL_STACKTRACE_CONFIG_H_
24 #include "absl/base/config.h"
26 #if defined(ABSL_STACKTRACE_INL_HEADER)
27 #error ABSL_STACKTRACE_INL_HEADER cannot be directly set
30 #define ABSL_STACKTRACE_INL_HEADER \
31 "absl/debugging/internal/stacktrace_win32-inl.inc"
33 #elif defined(__APPLE__)
34 #ifdef ABSL_HAVE_THREAD_LOCAL
36 #define ABSL_STACKTRACE_INL_HEADER \
37 "absl/debugging/internal/stacktrace_generic-inl.inc"
38 #endif // defined(ABSL_HAVE_THREAD_LOCAL)
41 #elif defined(__EMSCRIPTEN__) && !defined(STANDALONE_WASM)
42 #define ABSL_STACKTRACE_INL_HEADER \
43 "absl/debugging/internal/stacktrace_emscripten-inl.inc"
45 #elif defined(__linux__) && !defined(__ANDROID__)
47 #if defined(NO_FRAME_POINTER) && \
48 (defined(__i386__) || defined(__x86_64__) || defined(__aarch64__))
51 #define ABSL_STACKTRACE_INL_HEADER \
52 "absl/debugging/internal/stacktrace_libunwind-inl.inc"
53 #define STACKTRACE_USES_LIBUNWIND 1
54 #elif defined(NO_FRAME_POINTER) && defined(__has_include)
55 #if __has_include(<execinfo.h>)
57 #define ABSL_STACKTRACE_INL_HEADER \
58 "absl/debugging/internal/stacktrace_generic-inl.inc"
59 #endif // __has_include(<execinfo.h>)
60 #elif defined(__i386__) || defined(__x86_64__)
61 #define ABSL_STACKTRACE_INL_HEADER \
62 "absl/debugging/internal/stacktrace_x86-inl.inc"
63 #elif defined(__ppc__) || defined(__PPC__)
64 #define ABSL_STACKTRACE_INL_HEADER \
65 "absl/debugging/internal/stacktrace_powerpc-inl.inc"
66 #elif defined(__aarch64__)
67 #define ABSL_STACKTRACE_INL_HEADER \
68 "absl/debugging/internal/stacktrace_aarch64-inl.inc"
69 #elif defined(__riscv)
70 #define ABSL_STACKTRACE_INL_HEADER \
71 "absl/debugging/internal/stacktrace_riscv-inl.inc"
72 #elif defined(__has_include)
73 #if __has_include(<execinfo.h>)
75 #define ABSL_STACKTRACE_INL_HEADER \
76 "absl/debugging/internal/stacktrace_generic-inl.inc"
77 #endif // __has_include(<execinfo.h>)
78 #endif // defined(__has_include)
80 #endif // defined(__linux__) && !defined(__ANDROID__)
83 #if !defined(ABSL_STACKTRACE_INL_HEADER)
84 #define ABSL_STACKTRACE_INL_HEADER \
85 "absl/debugging/internal/stacktrace_unimplemented-inl.inc"
88 #endif // ABSL_DEBUGGING_INTERNAL_STACKTRACE_CONFIG_H_
grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:17