mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 13:13:06 +00:00
Conditionally remove unreachable for C23+
This commit is contained in:
@@ -39,6 +39,15 @@
|
||||
# define unlikely(x) !!(x)
|
||||
#endif
|
||||
|
||||
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L
|
||||
#include <stddef.h>
|
||||
#else
|
||||
#if !defined(JEMALLOC_INTERNAL_UNREACHABLE)
|
||||
# error JEMALLOC_INTERNAL_UNREACHABLE should have been defined by configure
|
||||
#endif
|
||||
#define unreachable() JEMALLOC_INTERNAL_UNREACHABLE()
|
||||
#endif
|
||||
|
||||
/* Set error code. */
|
||||
UTIL_INLINE void
|
||||
set_errno(int errnum) {
|
||||
|
||||
Reference in New Issue
Block a user