MySQL  8.0.16
Source Code Documentation
my_compiler.h File Reference

Header for compiler-dependent features. More...

#include <assert.h>
#include <stddef.h>
#include "my_config.h"

Go to the source code of this file.

Macros

#define MY_ASSERT_UNREACHABLE()
 
#define ALWAYS_INLINE   __attribute__((always_inline)) inline
 
#define NO_INLINE   __attribute__((noinline))
 
#define __has_attribute(x)   0
 
#define SUPPRESS_UBSAN
 
#define SUPPRESS_TSAN
 
#define STDCALL
 

Functions

bool likely (bool expr)
 
bool unlikely (bool expr)
 

Detailed Description

Header for compiler-dependent features.

Intended to contain a set of reusable wrappers for preprocessor macros, attributes, pragmas, and any other features that are specific to a target compiler.

Macro Definition Documentation

◆ __has_attribute

#define __has_attribute (   x)    0

◆ ALWAYS_INLINE

#define ALWAYS_INLINE   __attribute__((always_inline)) inline

◆ MY_ASSERT_UNREACHABLE

#define MY_ASSERT_UNREACHABLE ( )
Value:
do { \
assert(0); \
} while (0)

◆ NO_INLINE

#define NO_INLINE   __attribute__((noinline))

◆ STDCALL

#define STDCALL

◆ SUPPRESS_TSAN

#define SUPPRESS_TSAN

◆ SUPPRESS_UBSAN

#define SUPPRESS_UBSAN

Function Documentation

◆ likely()

bool likely ( bool  expr)
inline

◆ unlikely()

bool unlikely ( bool  expr)
inline