Move ARR_LEN macro to misc_utils

This commit is contained in:
2024-06-22 20:41:23 +01:00
parent 9f4137dac9
commit 5908cf3063
3 changed files with 27 additions and 5 deletions

View File

@@ -0,0 +1,6 @@
#ifndef MISC_UTILS_H
#define MISC_UTILS_H
#define ARR_LEN(ARR) sizeof(ARR) / sizeof(ARR[0])
#endif // !MISC_UTILS_H