aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorjustanothercatgirl <sotov2070@gmail.com>2024-06-20 21:15:36 +0300
committerjustanothercatgirl <sotov2070@gmail.com>2024-06-20 21:15:36 +0300
commitaeaf84ff54a7921195cda875492b7a22f8b0a948 (patch)
treec6e561b4bcd629b732cde05a8b7460115f60245b /include
parent9f76941161380ae52516ede461fec8713ea2e61a (diff)
parent437c40d8bcd533c8af6804f299f5e0cb974f7a9d (diff)
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'include')
-rw-r--r--include/container.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/container.h b/include/container.h
index 7b2b8de..b987d35 100644
--- a/include/container.h
+++ b/include/container.h
@@ -29,6 +29,13 @@ typedef unsigned char byte;
unsigned long __bit_scan_32(int32_t number);
unsigned long __bit_scan_64(int64_t number);
#endif
+#if defined(__clang__) || defined(__GNUC__)
+#define FALLTHROUGH __attribute__((fallthrough))
+#elif defined(_MSC_VER)
+#define FALLTHROUGH __fallthrough()
+#else
+#define FALLTHROUGH ((void)0)
+#endif
typedef int(*qsort_cmp_t)(const void*, const void*);
#define get_qsort_cmp(type) __qsort_cmps[sizeof(type)]