photon  1.1
Macros
photon_attributes.h File Reference

Go to the source code of this file.

Macros

#define PHOTON_ALIGNED(N)   __attribute__((aligned(N)))
 
#define PHOTON_INTERNAL   __attribute__((visibility("internal")))
 
#define PHOTON_RETURNS_TWICE   __attribute__((returns_twice))
 
#define PHOTON_NORETURN   __attribute__((noreturn))
 
#define PHOTON_NOINLINE   __attribute__((noinline))
 
#define PHOTON_AWAYS_INLINE   __attribute__((always_inline))
 
#define PHOTON_OPTIMIZE(S)   __attribute__((optimize(S)))
 
#define PHOTON_MALLOC   __attribute__((malloc))
 
#define PHOTON_USED   __attribute__((used))
 
#define PHOTON_UNUSED   __attribute__((unused))
 
#define PHOTON_ASM(S)   __asm__(#S)
 
#define PHOTON_PACKED   __attribute__((packed))
 
#define PHOTON_NON_NULL(...)   __attribute__((nonnull(__VA_ARGS__)))
 
#define PHOTON_WEAK   __attribute__((weak))
 
#define PHOTON_CONSTRUCTOR   __attribute__((constructor))
 
#define PHOTON_DESTRUCTOR   __attribute__((destructor))
 
#define PHOTON_NO_OPTIMIZE   PHOTON_OPTIMIZE("O0")
 

Macro Definition Documentation

◆ PHOTON_ALIGNED

#define PHOTON_ALIGNED (   N)    __attribute__((aligned(N)))

Definition at line 21 of file photon_attributes.h.

◆ PHOTON_ASM

#define PHOTON_ASM (   S)    __asm__(#S)

Definition at line 31 of file photon_attributes.h.

◆ PHOTON_AWAYS_INLINE

#define PHOTON_AWAYS_INLINE   __attribute__((always_inline))

Definition at line 26 of file photon_attributes.h.

◆ PHOTON_CONSTRUCTOR

#define PHOTON_CONSTRUCTOR   __attribute__((constructor))

Definition at line 35 of file photon_attributes.h.

◆ PHOTON_DESTRUCTOR

#define PHOTON_DESTRUCTOR   __attribute__((destructor))

Definition at line 36 of file photon_attributes.h.

◆ PHOTON_INTERNAL

#define PHOTON_INTERNAL   __attribute__((visibility("internal")))

Definition at line 22 of file photon_attributes.h.

◆ PHOTON_MALLOC

#define PHOTON_MALLOC   __attribute__((malloc))

Definition at line 28 of file photon_attributes.h.

◆ PHOTON_NO_OPTIMIZE

#define PHOTON_NO_OPTIMIZE   PHOTON_OPTIMIZE("O0")

Definition at line 41 of file photon_attributes.h.

◆ PHOTON_NOINLINE

#define PHOTON_NOINLINE   __attribute__((noinline))

Definition at line 25 of file photon_attributes.h.

◆ PHOTON_NON_NULL

#define PHOTON_NON_NULL (   ...)    __attribute__((nonnull(__VA_ARGS__)))

Definition at line 33 of file photon_attributes.h.

◆ PHOTON_NORETURN

#define PHOTON_NORETURN   __attribute__((noreturn))

Definition at line 24 of file photon_attributes.h.

◆ PHOTON_OPTIMIZE

#define PHOTON_OPTIMIZE (   S)    __attribute__((optimize(S)))

Definition at line 27 of file photon_attributes.h.

◆ PHOTON_PACKED

#define PHOTON_PACKED   __attribute__((packed))

Definition at line 32 of file photon_attributes.h.

◆ PHOTON_RETURNS_TWICE

#define PHOTON_RETURNS_TWICE   __attribute__((returns_twice))

Definition at line 23 of file photon_attributes.h.

◆ PHOTON_UNUSED

#define PHOTON_UNUSED   __attribute__((unused))

Definition at line 30 of file photon_attributes.h.

◆ PHOTON_USED

#define PHOTON_USED   __attribute__((used))

Definition at line 29 of file photon_attributes.h.

◆ PHOTON_WEAK

#define PHOTON_WEAK   __attribute__((weak))

Definition at line 34 of file photon_attributes.h.