pike.git
/
src
/
global.h
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/global.h:235:
# define UNLIKELY(X) X # define LIKELY(X) X #endif #ifdef HAS___BUILTIN_UNREACHABLE # define UNREACHABLE(X) __builtin_unreachable() #else # define UNREACHABLE(X) X #endif
+
#ifdef HAS___BUILTIN_ASSUME
+
# define STATIC_ASSUME(X) __builtin_assume(X)
+
#else
+
# define STATIC_ASSUME(X) do { if (!(X)) UNREACHABLE(); } while(0)
+
#endif
+
#ifndef HAVE_WORKING_REALLOC_NULL #define realloc(PTR, SZ) pike_realloc(PTR,SZ) #endif /* NOTE: * PIKE_CONCAT doesn't get defined if there isn't any way to * concatenate symbols */ #ifdef HAVE_ANSI_CONCAT #define PIKE_CONCAT(X,Y) X##Y