MCPcopy Create free account
hub / github.com/FastLED/FastLED / fallthrough_function

Function fallthrough_function

tests/fl/stl/compiler_control.cpp:17–29  ·  view source on GitHub ↗

Test helper: Function with implicit fallthrough

Source from the content-addressed store, hash-verified

15
16// Test helper: Function with implicit fallthrough
17static int fallthrough_function(int x) {
18 switch(x) {
19 case 1:
20 FL_DISABLE_WARNING_PUSH
21 FL_DISABLE_WARNING_IMPLICIT_FALLTHROUGH
22 // fallthrough
23 case 2:
24 FL_DISABLE_WARNING_POP
25 return 20;
26 default:
27 return 0;
28 }
29}
30
31// Test helper: Fast math function
32FL_FAST_MATH_BEGIN

Callers 1

FL_TEST_FILEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected