Ruby 4.1.0dev (2026-04-05 revision a3c372a6dac78cd12d7d9ddc2a35cd3b99d325d7)
Macros
fallthrough.h File Reference

(a3c372a6dac78cd12d7d9ddc2a35cd3b99d325d7)

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PRISM_FALLTHROUGH   __attribute__((fallthrough));
 We use -Wimplicit-fallthrough to guard potentially unintended fall-through between cases of a switch.
 

Macro Definition Documentation

◆ PRISM_FALLTHROUGH

#define PRISM_FALLTHROUGH   __attribute__((fallthrough));

We use -Wimplicit-fallthrough to guard potentially unintended fall-through between cases of a switch.

Use PRISM_FALLTHROUGH to explicitly annotate cases where the fallthrough is intentional.

Definition at line 15 of file fallthrough.h.