Skip to content

fallthrough

The fallthrough keyword is used within switch blocks, to indicate that the current case continues its execution to the next case.

Syntax

fallthrough;

Example Code

switch (enumerate)
{
case Enum::_Val0:
    fallthrough;
case Enum::_Val1:
    break;

default:
    break;
}