Merge pull request #363 from lioncash/array-size

common_funcs: Remove ARRAY_SIZE macro
This commit is contained in:
bunnei
2018-04-20 09:43:02 -04:00
committed by GitHub
3 changed files with 4 additions and 5 deletions

View File

@ -9,8 +9,6 @@
#endif
#include "common/common_types.h"
#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
/// Textually concatenates two tokens. The double-expansion is required by the C preprocessor.
#define CONCAT2(x, y) DO_CONCAT2(x, y)
#define DO_CONCAT2(x, y) x##y