aboutsummaryrefslogtreecommitdiff
path: root/src/common/common_funcs.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-04-19 22:36:48 -0400
committerLioncash <mathew1800@gmail.com>2018-04-19 22:36:52 -0400
commitc9f5ae4fccb4d598d79f30a10efdbeeaa9259beb (patch)
treec218d1705222ae899c613427b01e1947a1c22893 /src/common/common_funcs.h
parentfd50308f395f2fd0e41c6739a3befd740d3982fc (diff)
common_funcs: Remove ARRAY_SIZE macro
C++17 has non-member size() which we can just call where necessary.
Diffstat (limited to 'src/common/common_funcs.h')
-rw-r--r--src/common/common_funcs.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/common/common_funcs.h b/src/common/common_funcs.h
index 6f06049581..19a33cb57e 100644
--- a/src/common/common_funcs.h
+++ b/src/common/common_funcs.h
@@ -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