Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use COUNT_OF macro for message_handlers bounds check
Summary: Currently we calculate the size of a 2d array with messy sizeof calculations. In this diff, we pull in a macro from chromium (sourced from SO) to make this calculation simpler and semantically more clear. Reviewed By: vikg-fb Differential Revision: D14690805 fbshipit-source-id: c106198a8ddc902e3cfc7fe85364e462eb716e30
- Loading branch information
1 parent
5bdee78
commit 861a7b3
Showing
2 changed files
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters