Ruby
4.1.0dev (2026-04-05 revision a3c372a6dac78cd12d7d9ddc2a35cd3b99d325d7)
prism
compiler
fallthrough.h
Go to the documentation of this file.
1
4
#ifndef PRISM_COMPILER_FALLTHROUGH_H
5
#define PRISM_COMPILER_FALLTHROUGH_H
6
12
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L
/* C23 or later */
13
#define PRISM_FALLTHROUGH [[fallthrough]];
14
#elif defined(__GNUC__) || defined(__clang__)
15
#define PRISM_FALLTHROUGH __attribute__((fallthrough));
16
#elif defined(_MSC_VER)
17
#define PRISM_FALLTHROUGH __fallthrough;
18
#else
19
#define PRISM_FALLTHROUGH
20
#endif
21
22
#endif
Generated by
1.9.8