You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#pragma once |
|
|
|
#define max(a, b) \ |
|
({ \ |
|
__typeof__(a) _a = (a); \ |
|
__typeof__(b) _b = (b); \ |
|
_a > _b ? _a : _b; \ |
|
}) |
|
|
|
#define ARRAY_SIZE(x) ((sizeof(x) / sizeof(0 [x])) / ((size_t)(!(sizeof(x) % sizeof(0 [x])))))
|
|
|