PatchworkOS
Loading...
Searching...
No Matches
defs.h
Go to the documentation of this file.
1#pragma once
2
3#include <stdbool.h>
4#include <stddef.h>
5#include <stdint.h>
6
22#define ALIGNED(alignment) __attribute__((aligned(alignment)))
23
32#define PACKED __attribute__((packed))
33
39#define NORETURN __attribute__((noreturn))
40
47#define NOINLINE __attribute__((noinline))
48
56#define CONST_FUNC __attribute__((const))
57
65#define PURE_FUNC __attribute__((pure))
66
76#define CONCAT(a, b) CONCAT_INNER(a, b)
77
81#define CONCAT_INNER(a, b) a##b
82