libyggdrasil  v1.0.0
attributes.h File Reference

Commonly used C and GNU attributes. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LIKELY   __attribute__((likely))
 
#define UNLIKELY   __attribute__((unlikely))
 
#define DEPRECTATED(reason)   __attribute__((deprecated))
 
#define NO_RETURN   __attribute__((noreturn))
 
#define WEAK   __attribute__((weak))
 
#define ALWAYS_INLINE   __attribute__((always_inline)) inline
 
#define PACKED   __attribute__((packed))
 
#define NAKED   __attribute__((naked))
 
#define SECTION(name)   __attribute__((section(name)))
 
#define ALIGNED(alignment)   __attribute__((aligned(alignment)))
 
#define C_LINKAGE
 

Detailed Description

Commonly used C and GNU attributes.

Author
Fabian Weber, Nikolaij Saegesser

Macro Definition Documentation

◆ ALIGNED

#define ALIGNED (   alignment)    __attribute__((aligned(alignment)))

◆ ALWAYS_INLINE

#define ALWAYS_INLINE   __attribute__((always_inline)) inline

◆ C_LINKAGE

#define C_LINKAGE

◆ DEPRECTATED

#define DEPRECTATED (   reason)    __attribute__((deprecated))

◆ LIKELY

#define LIKELY   __attribute__((likely))

◆ NAKED

#define NAKED   __attribute__((naked))

◆ NO_RETURN

#define NO_RETURN   __attribute__((noreturn))

◆ PACKED

#define PACKED   __attribute__((packed))

◆ SECTION

#define SECTION (   name)    __attribute__((section(name)))

◆ UNLIKELY

#define UNLIKELY   __attribute__((unlikely))

◆ WEAK

#define WEAK   __attribute__((weak))