aboutsummaryrefslogtreecommitdiff
path: root/chad/macros.h
blob: b47ea12fc95ec32e025fba13933c155314f2a3b0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 */