Go to the documentation of this file.
39 #define __PRIS_PREFIX "z"
49 #define PRIdS __PRIS_PREFIX "d"
50 #define PRIxS __PRIS_PREFIX "x"
51 #define PRIuS __PRIS_PREFIX "u"
52 #define PRIXS __PRIS_PREFIX "X"
53 #define PRIoS __PRIS_PREFIX "o"
59 #include <glog/logging.h>
61 #if defined(GLOG_OS_WINDOWS)
89 #if defined(HAVE_LIB_UNWIND)
90 # define STACKTRACE_H "stacktrace_libunwind-inl.h"
91 #elif defined(HAVE__UNWIND_BACKTRACE)
92 # define STACKTRACE_H "stacktrace_unwind-inl.h"
93 #elif !defined(NO_FRAME_POINTER)
94 # if defined(__i386__) && __GNUC__ >= 2
95 # define STACKTRACE_H "stacktrace_x86-inl.h"
96 # elif (defined(__ppc__) || defined(__PPC__)) && __GNUC__ >= 2
97 # define STACKTRACE_H "stacktrace_powerpc-inl.h"
98 # elif defined(GLOG_OS_WINDOWS)
99 # define STACKTRACE_H "stacktrace_windows-inl.h"
103 #if !defined(STACKTRACE_H) && defined(HAVE_EXECINFO_H)
104 # define STACKTRACE_H "stacktrace_generic-inl.h"
107 #if defined(STACKTRACE_H)
108 # define HAVE_STACKTRACE
111 #ifndef GLOG_NO_SYMBOLIZE_DETECTION
112 #ifndef HAVE_SYMBOLIZE
114 #if defined(__ELF__) && defined(GLOG_OS_LINUX)
115 # define HAVE_SYMBOLIZE
116 #elif defined(GLOG_OS_MACOSX) && defined(HAVE_DLADDR)
118 # define HAVE_SYMBOLIZE
119 #elif defined(GLOG_OS_WINDOWS)
121 # define HAVE_SYMBOLIZE
123 #endif // !defined(HAVE_SYMBOLIZE)
124 #endif // !defined(GLOG_NO_SYMBOLIZE_DETECTION)
128 # define ARRAYSIZE(a) (sizeof(a) / sizeof(*(a)))
135 #ifdef HAVE___ATTRIBUTE__
136 # define ATTRIBUTE_NOINLINE __attribute__ ((noinline))
137 # define HAVE_ATTRIBUTE_NOINLINE
138 #elif defined(GLOG_OS_WINDOWS)
139 # define ATTRIBUTE_NOINLINE __declspec(noinline)
140 # define HAVE_ATTRIBUTE_NOINLINE
142 # define ATTRIBUTE_NOINLINE
169 #if defined(HAVE___SYNC_VAL_COMPARE_AND_SWAP)
170 return __sync_val_compare_and_swap(ptr, oldval, newval);
171 #elif defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
173 __asm__ __volatile__(
"lock; cmpxchg %1, (%2);"
179 :
"q"(newval),
"q"(ptr),
"a"(oldval)
213 _END_GOOGLE_NAMESPACE_
215 using namespace GOOGLE_NAMESPACE::glog_internal_namespace_;
217 #endif // UTILITIES_H__
const char * ProgramInvocationShortName()
void ShutdownGoogleLoggingUtilities()
GLsizei const GLchar *const * string
#define T(upbtypeconst, upbtype, ctype, default_value)
void SetCrashReason(const CrashReason *r)
GLint GLint GLsizei GLsizei GLsizei depth
void InitGoogleLoggingUtilities(const char *argv0)
void DumpStackTraceToString(std::string *stacktrace)
const char * const_basename(const char *filepath)
int64 UsecToCycles(int64 usec)
GLenum GLuint GLenum GLsizei const GLchar * message
T sync_val_compare_and_swap(T *ptr, T oldval, T newval)
const string & MyUserName()
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:01