infra: add CYG_ARRAY_SIZE() macro

Andrew Lunn andrew@lunn.ch
Wed May 17 16:24:00 GMT 2006


On Wed, May 17, 2006 at 05:13:47PM +0100, David Vrabel wrote:
> I've had to use something like this quite a bit so I guess it's useful
> enough to include.  It does the same thing as Linux's ARRAY_SIZE macro.

I've always called this NELEM. 

Is this defined in any standard anywhere? 

   Andrew



More information about the Ecos-patches mailing list