Go to the source code of this file.
|
#define | ARRLEN(x) (sizeof(x) / sizeof((x)[0])) |
|
#define | MYMIN(a, b) ((a) < (b) ? (a) : (b)) |
|
#define | MYMAX(a, b) ((a) > (b) ? (a) : (b)) |
|
#define | CONTAINS(c, v) (std::find((c).begin(), (c).end(), (v)) != (c).end()) |
|
#define | DISABLE_CLASS_COPY(C) |
|
#define | UNUSED_ATTRIBUTE __attribute__ ((unused)) |
|
#define | STATIC_ASSERT(expr, msg) UNUSED_ATTRIBUTE typedef char msg[!!(expr) * 2 - 1] |
|
#define | PP(x) "("<<(x).X<<","<<(x).Y<<","<<(x).Z<<")" |
|
#define | PP2(x) "("<<(x).X<<","<<(x).Y<<")" |
|
◆ ARRLEN
#define ARRLEN |
( |
|
x | ) |
(sizeof(x) / sizeof((x)[0])) |
◆ CONTAINS
#define CONTAINS |
( |
|
c, |
|
|
|
v |
|
) |
| (std::find((c).begin(), (c).end(), (v)) != (c).end()) |
◆ DISABLE_CLASS_COPY
#define DISABLE_CLASS_COPY |
( |
|
C | ) |
|
Value: C(const C &) = delete; \
C &operator=(const C &) = delete;
◆ MYMAX
#define MYMAX |
( |
|
a, |
|
|
|
b |
|
) |
| ((a) > (b) ? (a) : (b)) |
◆ MYMIN
#define MYMIN |
( |
|
a, |
|
|
|
b |
|
) |
| ((a) < (b) ? (a) : (b)) |
◆ PP
#define PP |
( |
|
x | ) |
"("<<(x).X<<","<<(x).Y<<","<<(x).Z<<")" |
◆ PP2
#define PP2 |
( |
|
x | ) |
"("<<(x).X<<","<<(x).Y<<")" |
◆ STATIC_ASSERT
#define STATIC_ASSERT |
( |
|
expr, |
|
|
|
msg |
|
) |
| UNUSED_ATTRIBUTE typedef char msg[!!(expr) * 2 - 1] |
◆ UNUSED_ATTRIBUTE
#define UNUSED_ATTRIBUTE __attribute__ ((unused)) |