kernel
Loading...
Searching...
No Matches
annotations.h File Reference

Go to the source code of this file.

Macros

#define IN
#define OUT
#define _In_Opt
#define _Out_Opt
#define NORETURN   __attribute__((noreturn))
#define FORCEINLINE   static inline
#define FORCEINLINE_NOHEADER   inline
#define USED   __attribute__((used))
#define MUST_USE_RESULT   __attribute__((warn_unused_result))
#define COLD   __attribute__((cold))
#define HOT   __attribute__((hot))
#define PACKED   __attribute__((packed))
#define STATIC_ASSERT(cond, msg)
#define COMPILE_WARNING(msg)
#define COMPILE_ERROR(msg)
#define SYSV_ABI   __attribute__((sysv_abi))
#define MS_ABI   __attribute__((ms_abi))
#define NOINLINE   __attribute__((noinline))
#define UNREACHABLE_CODE()
#define VALIDATE_SIZE(struc, size)
#define VALIDATE_OFFSET(struc, member, offset)

Macro Definition Documentation

◆ _In_Opt

#define _In_Opt

Definition at line 10 of file annotations.h.

◆ _Out_Opt

#define _Out_Opt

Definition at line 11 of file annotations.h.

◆ COLD

#define COLD   __attribute__((cold))

Definition at line 45 of file annotations.h.

◆ COMPILE_ERROR

#define COMPILE_ERROR ( msg)
Value:
__attribute__((error(msg)))
typedef __attribute__
Definition fat32.h:64

Definition at line 60 of file annotations.h.

◆ COMPILE_WARNING

#define COMPILE_WARNING ( msg)
Value:
__attribute__((warning(msg)))

Definition at line 57 of file annotations.h.

◆ FORCEINLINE

#define FORCEINLINE   static inline

Definition at line 23 of file annotations.h.

◆ FORCEINLINE_NOHEADER

#define FORCEINLINE_NOHEADER   inline

Definition at line 34 of file annotations.h.

◆ HOT

#define HOT   __attribute__((hot))

Definition at line 48 of file annotations.h.

◆ IN

#define IN

Definition at line 8 of file annotations.h.

◆ MS_ABI

#define MS_ABI   __attribute__((ms_abi))

Definition at line 66 of file annotations.h.

◆ MUST_USE_RESULT

#define MUST_USE_RESULT   __attribute__((warn_unused_result))

Definition at line 42 of file annotations.h.

◆ NOINLINE

#define NOINLINE   __attribute__((noinline))

Definition at line 69 of file annotations.h.

◆ NORETURN

#define NORETURN   __attribute__((noreturn))

Definition at line 14 of file annotations.h.

◆ OUT

#define OUT

Definition at line 9 of file annotations.h.

◆ PACKED

#define PACKED   __attribute__((packed))

Definition at line 51 of file annotations.h.

◆ STATIC_ASSERT

#define STATIC_ASSERT ( cond,
msg )
Value:
_Static_assert(cond, msg)

Definition at line 54 of file annotations.h.

◆ SYSV_ABI

#define SYSV_ABI   __attribute__((sysv_abi))

Definition at line 63 of file annotations.h.

◆ UNREACHABLE_CODE

#define UNREACHABLE_CODE ( )
Value:
__builtin_unreachable()

Definition at line 72 of file annotations.h.

◆ USED

#define USED   __attribute__((used))

Definition at line 39 of file annotations.h.

◆ VALIDATE_OFFSET

#define VALIDATE_OFFSET ( struc,
member,
offset )
Value:
_Static_assert(offsetof(struc, member) == offset, "The offset of " #member " in " #struc " is not " #offset "...")

Definition at line 78 of file annotations.h.

◆ VALIDATE_SIZE

#define VALIDATE_SIZE ( struc,
size )
Value:
_Static_assert(sizeof(struc) == size, "Invalid structure size of " #struc)

Definition at line 75 of file annotations.h.