mirror of https://github.com/OISF/suricata
Add general purpose `ARRAY_SIZE` macro
This commit adds `ARRAY_SIZE` as an helper for determining the number of elements in an initialized array. The calculation is the same but the macro provides a convenient shortcut. The implementation was borrowed from the kernel sources.pull/4383/head
parent
ae198add6d
commit
90c2e3561c
Loading…
Reference in New Issue