stacktrace_config.h
Go to the documentation of this file.
00001 /*
00002  * Copyright 2017 The Abseil Authors.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *      https://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015 
00016  * Defines ABSL_STACKTRACE_INL_HEADER to the *-inl.h containing
00017  * actual unwinder implementation.
00018  * This header is "private" to stacktrace.cc.
00019  * DO NOT include it into any other files.
00020 */
00021 #ifndef ABSL_DEBUGGING_INTERNAL_STACKTRACE_CONFIG_H_
00022 #define ABSL_DEBUGGING_INTERNAL_STACKTRACE_CONFIG_H_
00023 
00024 #if defined(ABSL_STACKTRACE_INL_HEADER)
00025 #error ABSL_STACKTRACE_INL_HEADER cannot be directly set
00026 
00027 #elif defined(_WIN32)
00028 #define ABSL_STACKTRACE_INL_HEADER \
00029     "absl/debugging/internal/stacktrace_win32-inl.inc"
00030 
00031 #elif defined(__linux__) && !defined(__ANDROID__)
00032 
00033 #if !defined(NO_FRAME_POINTER)
00034 # if defined(__i386__) || defined(__x86_64__)
00035 #define ABSL_STACKTRACE_INL_HEADER \
00036     "absl/debugging/internal/stacktrace_x86-inl.inc"
00037 # elif defined(__ppc__) || defined(__PPC__)
00038 #define ABSL_STACKTRACE_INL_HEADER \
00039     "absl/debugging/internal/stacktrace_powerpc-inl.inc"
00040 # elif defined(__aarch64__)
00041 #define ABSL_STACKTRACE_INL_HEADER \
00042     "absl/debugging/internal/stacktrace_aarch64-inl.inc"
00043 # elif defined(__arm__)
00044 // Note: When using glibc this may require -funwind-tables to function properly.
00045 #define ABSL_STACKTRACE_INL_HEADER \
00046   "absl/debugging/internal/stacktrace_generic-inl.inc"
00047 # else
00048 #define ABSL_STACKTRACE_INL_HEADER \
00049    "absl/debugging/internal/stacktrace_unimplemented-inl.inc"
00050 # endif
00051 #else  // defined(NO_FRAME_POINTER)
00052 # if defined(__i386__) || defined(__x86_64__) || defined(__aarch64__)
00053 #define ABSL_STACKTRACE_INL_HEADER \
00054     "absl/debugging/internal/stacktrace_generic-inl.inc"
00055 # elif defined(__ppc__) || defined(__PPC__)
00056 #define ABSL_STACKTRACE_INL_HEADER \
00057     "absl/debugging/internal/stacktrace_generic-inl.inc"
00058 # else
00059 #define ABSL_STACKTRACE_INL_HEADER \
00060    "absl/debugging/internal/stacktrace_unimplemented-inl.inc"
00061 # endif
00062 #endif  // NO_FRAME_POINTER
00063 
00064 #else
00065 #define ABSL_STACKTRACE_INL_HEADER \
00066   "absl/debugging/internal/stacktrace_unimplemented-inl.inc"
00067 
00068 #endif
00069 
00070 #endif  // ABSL_DEBUGGING_INTERNAL_STACKTRACE_CONFIG_H_


abseil_cpp
Author(s):
autogenerated on Wed Jun 19 2019 19:42:15