[riot-notifications] [RIOT-OS/RIOT] add ARRAYSIZE macro and make use of it (#11865)

benpicco notifications at github.com
Mon Jul 22 11:00:37 CEST 2019

benpicco commented on this pull request.

> @@ -47,7 +47,7 @@
  * @brief   Determine length of array in elements
-#define _ARRAY_LEN(x)                   (sizeof(x) / sizeof(x[0]))
+#define _ARRAY_LEN(x)                   ARRAY_SIZE(x)

Good catch! 

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190722/cc752a24/attachment.htm>

More information about the notifications mailing list