forked from karlstav/cava
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathutil.h
More file actions
12 lines (10 loc) · 644 Bytes
/
util.h
File metadata and controls
12 lines (10 loc) · 644 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
#pragma once
#ifndef _WIN32
#define max(a, b) \
({ \
__typeof__(a) _a = (a); \
__typeof__(b) _b = (b); \
_a > _b ? _a : _b; \
})
#endif
#define ARRAY_SIZE(x) ((sizeof(x) / sizeof(0 [x])) / ((size_t)(!(sizeof(x) % sizeof(0 [x])))))