Infer length of array rather than having a #define