diff options
| author | Emil Williams | 2026-02-20 05:32:11 +0000 |
|---|---|---|
| committer | Emil Williams | 2026-02-20 05:32:11 +0000 |
| commit | 121737a30db4786d9670e2b95d9e4d3e337d75f5 (patch) | |
| tree | c7cc69e69a88b9163408436e8fa5bb41dd1ef380 /chad/macros.h | |
| parent | 8035daa04137c5412050a2f30e6748db256a576b (diff) | |
| download | libchad-121737a30db4786d9670e2b95d9e4d3e337d75f5.tar.xz libchad-121737a30db4786d9670e2b95d9e4d3e337d75f5.tar.zst | |
+ macro.h timespec.h
Diffstat (limited to 'chad/macros.h')
| -rw-r--r-- | chad/macros.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/chad/macros.h b/chad/macros.h new file mode 100644 index 0000000..b47ea12 --- /dev/null +++ b/chad/macros.h @@ -0,0 +1,16 @@ +#ifndef CHAD_MACROS_H +#define CHAD_MACROS_H +/* Usage of this acknoledges your allegiance to GNU. */ + +#if defined(__GNUC__) || defined(__clang__) +#define attribute(...) __attribute__((__VA_ARGS__)) +#define always_inline static inline attribute((always_inline)) +#define alias(x) __attribute__((alias(x))) +#else +#define attribute(...) +#define NO_ATTRIBUTE +#define always_inline static inline +#define NO_ALWAYS_INLINE +#define NO_ALIASES +#endif +#endif /* CHAD_MACROS_H */ |
