summaryrefslogtreecommitdiff
path: root/plugins/HistoryStats/src/_langext.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-08-12 13:20:45 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-08-12 13:20:45 +0000
commit9c4e02916ad863a7fdd95d2668f29714997d61c5 (patch)
treedca6208e75e39868aa79842c43b3afd806007128 /plugins/HistoryStats/src/_langext.h
parent70dc611c18f94358749c6aa682ebaaa34ca44d18 (diff)
minus one erroneous macro
git-svn-id: http://svn.miranda-ng.org/main/trunk@14925 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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)