emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

EARRAYSIZE


From: Eli Zaretskii
Subject: EARRAYSIZE
Date: Thu, 03 Apr 2014 22:30:50 +0300

  +/* Find number of elements in array */
  +#define EARRAYSIZE(arr) (sizeof (arr) / sizeof ((arr)[0]))

I find the name of this macro to be unfortunate: what it returns is
not "size" in the accepted meaning of that word.

How about ALEN, or ARRAYELTS instead?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]