1 #ifndef artg4tk_util_array_macros_hh 2 #define artg4tk_util_array_macros_hh 19 typedef unsigned char byte_t;
22 struct array_size_struct {
30 template <
typename T,
int N>
37 #define dimensionof(x) sizeof(static_array_size_fn(x).c) 39 #if !defined(ARRAYEND) 42 #define ARRAYEND(x) (x + dimensionof(x)) 44 #error ARRAYEND defined already! 47 #if !defined(ARRAYBEGIN) 50 #define ARRAYBEGIN(x) x 52 #error ARRAYBEGIN defined already! array_size_struct< N > static_array_size_fn(T(&)[N])