diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2021-08-26 20:41:45 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2021-08-26 20:43:08 +0300 |
| commit | 07af47eca912f3b56f013749a268718d78656961 (patch) | |
| tree | 1bb933b33af06b9ae1e4849a9e108de1a695a894 /include/apos/attrs.h | |
| parent | 5dfac4879ce5f34503ae7537eefd3fc48d6fa750 (diff) | |
| download | kmi-07af47eca912f3b56f013749a268718d78656961.tar.gz kmi-07af47eca912f3b56f013749a268718d78656961.zip | |
Added debug flags and simple debug serial driver
Diffstat (limited to 'include/apos/attrs.h')
| -rw-r--r-- | include/apos/attrs.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/apos/attrs.h b/include/apos/attrs.h index 00dcf82..e088ec9 100644 --- a/include/apos/attrs.h +++ b/include/apos/attrs.h @@ -1,7 +1,9 @@ #ifndef APOS_COMPILER_ATTRIBUTES_H #define __section(section) __attribute__((__section__(section))) +#define __fmt(x, y) __attribute__((format (__printf__, x, y))) #define __noinline __attribute__((noinline)) -#define __weak __attribute((weak)) +#define __weak __attribute__((weak)) +#define __packed __attribute__((packed)) #endif /* APOS_COMPILER_ATTRIBUTES_H */ |
