We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 863a480 commit eed8aa4Copy full SHA for eed8aa4
src/compilersupport_p.h
@@ -61,7 +61,9 @@
61
# define inline CBOR_INLINE
62
#endif
63
64
+#ifndef STRINGIFY
65
#define STRINGIFY(x) STRINGIFY2(x)
66
+#endif
67
#define STRINGIFY2(x) #x
68
69
#if !defined(UINT32_MAX) || !defined(INT64_MAX)
@@ -151,8 +153,12 @@
151
153
152
154
155
#ifdef __GNUC__
156
+#ifndef likely
157
# define likely(x) __builtin_expect(!!(x), 1)
158
159
+#ifndef unlikely
160
# define unlikely(x) __builtin_expect(!!(x), 0)
161
162
# define unreachable() __builtin_unreachable()
163
#elif defined(_MSC_VER)
164
# define likely(x) (x)
0 commit comments