 |
nrfxlib API 3.3.99
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
35#ifndef NRF_802154_COMPILER_H__
36#define NRF_802154_COMPILER_H__
72#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 202311L)
74 #define SWITCH_CASE_FALLTHROUGH [[fallthrough]]
75#elif defined(__has_attribute)
77 #if __has_attribute(fallthrough)
78 #define SWITCH_CASE_FALLTHROUGH __attribute__((fallthrough))
80 #define SWITCH_CASE_FALLTHROUGH
82#elif defined(__GNUC__) && (__GNUC__ >= 7)
84 #define SWITCH_CASE_FALLTHROUGH __attribute__((fallthrough))
85#elif defined(__clang__)
87 #if defined(__clang_major__) && (__clang_major__ >= 10)
88 #define SWITCH_CASE_FALLTHROUGH __attribute__((fallthrough))
90 #define SWITCH_CASE_FALLTHROUGH
94 #define SWITCH_CASE_FALLTHROUGH