mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-24 13:53:11 +00:00
Conditionally remove unreachable for C23+
This commit is contained in:
@@ -39,6 +39,15 @@
|
|||||||
# define unlikely(x) !!(x)
|
# define unlikely(x) !!(x)
|
||||||
#endif
|
#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. */
|
/* Set error code. */
|
||||||
UTIL_INLINE void
|
UTIL_INLINE void
|
||||||
set_errno(int errnum) {
|
set_errno(int errnum) {
|
||||||
|
|||||||
Reference in New Issue
Block a user