summaryrefslogtreecommitdiff
path: root/plugins/HistoryStats/src/_langext.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/HistoryStats/src/_langext.h')
-rw-r--r--plugins/HistoryStats/src/_langext.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/HistoryStats/src/_langext.h b/plugins/HistoryStats/src/_langext.h
index ffe1626643..f5e94694f7 100644
--- a/plugins/HistoryStats/src/_langext.h
+++ b/plugins/HistoryStats/src/_langext.h
@@ -11,9 +11,6 @@
#define BOOL_(cpp_bool) \
((cpp_bool) ? TRUE : FALSE)
-#define array_len(array_var) \
- (sizeof(array_var) / sizeof((array_var)[0]))
-
#define range_each_(index_var, lo_bound, up_bound) \
for (int index_var = (lo_bound); index_var < (up_bound); ++index_var)
@@ -21,7 +18,7 @@
range_each_(index_var, 0, (up_bound))
#define array_each_(index_var, array_var) \
- range_each_(index_var, 0, array_len(array_var))
+ range_each_(index_var, 0, _countof(array_var))
#define vector_each_(index_var, vector_var) \
for (int index_var = 0; index_var != (vector_var).size(); ++index_var)