libyggdrasil  v1.0.0
attributes.hpp File Reference

Commonly used C++ and GNU attributes. More...

Go to the source code of this file.

Macros

#define FALLTRHOUGH   [[fallthrough]]
 
#define LIKELY   [[likely]]
 
#define UNLIKELY   [[unlikely]]
 
#define DEPRECTATED(reason)   [[deprecated(reason)]]
 
#define NO_RETURN   [[noreturn]]
 
#define WEAK   [[gnu::weak]]
 
#define ALWAYS_INLINE   [[gnu::always_inline]] inline
 
#define PACKED   [[gnu::packed]]
 
#define NAKED   [[gnu::naked]]
 
#define SECTION(name)   [[gnu::section(name)]]
 
#define ALIGNED(alignment)   [[gnu::aligned(alignment)]]
 
#define C_LINKAGE   extern "C"
 

Detailed Description

Commonly used C++ and GNU attributes.

Author
Fabian Weber, Nikolaij Saegesser

Macro Definition Documentation

◆ ALIGNED

#define ALIGNED (   alignment)    [[gnu::aligned(alignment)]]

◆ ALWAYS_INLINE

#define ALWAYS_INLINE   [[gnu::always_inline]] inline

◆ C_LINKAGE

#define C_LINKAGE   extern "C"

◆ DEPRECTATED

#define DEPRECTATED (   reason)    [[deprecated(reason)]]

◆ FALLTRHOUGH

#define FALLTRHOUGH   [[fallthrough]]

◆ LIKELY

#define LIKELY   [[likely]]

◆ NAKED

#define NAKED   [[gnu::naked]]

◆ NO_RETURN

#define NO_RETURN   [[noreturn]]

◆ PACKED

#define PACKED   [[gnu::packed]]

◆ SECTION

#define SECTION (   name)    [[gnu::section(name)]]

◆ UNLIKELY

#define UNLIKELY   [[unlikely]]

◆ WEAK

#define WEAK   [[gnu::weak]]