From 9c1c5ecd688052c39574999a523fa95f022b69b8 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 14 Aug 2012 01:42:06 -0500 Subject: Replace TOY_LIST_LEN with more generic ARRAY_LEN() --- toys.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'toys.h') 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)) -- cgit v1.2.3