mirror of https://github.com/bjornbytes/lovr.git
COUNTOF;
This commit is contained in:
parent
339f75f579
commit
64f7c49a0f
|
@ -23,6 +23,7 @@
|
|||
#define MIN(a, b) (a < b ? a : b)
|
||||
#define CLAMP(x, min, max) MAX(min, MIN(max, x))
|
||||
#define ALIGN(p, n) (((uintptr_t) (p) + (n - 1)) & ~(n - 1))
|
||||
#define COUNTOF(x) (sizeof(x) / sizeof(x[0]))
|
||||
#define CHECK_SIZEOF(T) int(*_o)[sizeof(T)]=1
|
||||
|
||||
typedef struct Color { float r, g, b, a; } Color;
|
||||
|
|
Loading…
Reference in New Issue