File: compiler.h

package info (click to toggle)
v4l-utils 1.32.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,276 kB
  • sloc: ansic: 85,528; cpp: 69,473; perl: 11,915; sh: 1,333; python: 883; php: 119; makefile: 39
file content (18 lines) | stat: -rw-r--r-- 484 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#if !defined(__cplusplus) || __cplusplus < 201103L
	#define fallthrough ((void)0)
#else
	#include <ciso646>
	#ifdef _LIBCPP_VERSION
		#ifdef _LIBCPP_FALLTHROUGH
			#define fallthrough _LIBCPP_FALLTHROUGH()
		#else
			#define fallthrough [[__fallthrough__]]
		#endif // _LIBCPP_FALLTHROUGH
	#else
		#ifdef __clang__
			#define fallthrough [[clang::fallthrough]]
		#else
			#define fallthrough [[gnu::fallthrough]]
		#endif // __clang__
	#endif // _LIBCPP_VERSION
#endif // __cplusplus