You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "davids5 (via GitHub)" <gi...@apache.org> on 2023/02/07 11:54:32 UTC
[GitHub] [nuttx] davids5 commented on pull request #8414: include: Add nitems() definition to sys/param.h
davids5 commented on PR #8414:
URL: https://github.com/apache/nuttx/pull/8414#issuecomment-1420651687
> If nitems() cannot be used as the system's preferred macro to completely replace ARRAY_SIZE(), is it pointless to exist?
The logic is to to avoid future addition of ArraySize variants littering the code as time go by. This comment will make it easy find Array Size in the code base and know to use nitems().
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org