 |
Flutter Engine
|
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
5#ifndef ACCESSIBILITY_BASE_COMPILER_SPECIFIC_H_
6#define ACCESSIBILITY_BASE_COMPILER_SPECIFIC_H_
8#if !defined(__GNUC__) && !defined(__clang__) && !defined(_MSC_VER)
9#error Unsupported compiler.
18#define BASE_ALLOW_UNUSED_LOCAL(x) false ? (void)x : (void)0
23#if defined(__GNUC__) || defined(__clang__)
24#define BASE_ALLOW_UNUSED_TYPE __attribute__((unused))
26#define BASE_ALLOW_UNUSED_TYPE
32#if !defined(BASE_UNLIKELY)
33#if defined(COMPILER_GCC) || defined(__clang__)
34#define BASE_UNLIKELY(x) __builtin_expect(!!(x), 0)
36#define BASE_UNLIKELY(x) (x)
40#if !defined(BASE_LIKELY)
41#if defined(COMPILER_GCC) || defined(__clang__)
42#define BASE_LIKELY(x) __builtin_expect(!!(x), 1)
44#define BASE_LIKELY(x) (x)
50#define BASE_FALLTHROUGH [[clang::fallthrough]]
52#define BASE_FALLTHROUGH