aboutsummaryrefslogtreecommitdiff
path: root/toys.h
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2012-08-14 01:42:06 -0500
committerRob Landley <rob@landley.net>2012-08-14 01:42:06 -0500
commit9c1c5ecd688052c39574999a523fa95f022b69b8 (patch)
treea051a16fde13230d5e4daeac9009d4e287f2d737 /toys.h
parent878aca71af67b6ceae27f6129e13c809fe8e993d (diff)
downloadtoybox-9c1c5ecd688052c39574999a523fa95f022b69b8.tar.gz
Replace TOY_LIST_LEN with more generic ARRAY_LEN()
Diffstat (limited to 'toys.h')
-rw-r--r--toys.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/toys.h b/toys.h
index a03ed7c5..0338077b 100644
--- a/toys.h
+++ b/toys.h
@@ -108,3 +108,5 @@ extern struct toy_context {
extern char toybuf[4096];
#define DEFINE_GLOBALS(...)
+
+#define ARRAY_LEN(array) (sizeof(array)/sizeof(*array))