diff options
Diffstat (limited to 'bittorrent/mbtstr/include/mbtstr/utils.h')
| -rw-r--r-- | bittorrent/mbtstr/include/mbtstr/utils.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/bittorrent/mbtstr/include/mbtstr/utils.h b/bittorrent/mbtstr/include/mbtstr/utils.h new file mode 100644 index 0000000..0bcbc79 --- /dev/null +++ b/bittorrent/mbtstr/include/mbtstr/utils.h @@ -0,0 +1,17 @@ +#ifndef MBTSTR_UTILS_H +#define MBTSTR_UTILS_H + +//////////////////////////////////////////////////////////////////////////////// +/// THIS FILE WILL BE OVERWRITTEN /// +//////////////////////////////////////////////////////////////////////////////// + +// see the Attributes section in the subject +#define MBT_ATTR(...) __attribute__((__VA_ARGS__)) +#define MBT_UNUSED MBT_ATTR(unused) +#define MBT_PACKED MBT_ATTR(packed) +#define MBT_NONNULL(...) MBT_ATTR(nonnull(__VA_ARGS__)) +#define MBT_RET_NONNULL MBT_ATTR(returns_nonnull) + +#define MBT_UNREACHABLE() __builtin_unreachable() + +#endif /* !MBTSTR_UTILS_H */ |
