Created
August 8, 2018 23:33
-
-
Save x5lcfd/61ed4abc7cad1d8eb47bfe07da254902 to your computer and use it in GitHub Desktop.
[GOOGLE_ARRAYSIZE]
This file contains hidden or 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
#undef GOOGLE_ARRAYSIZE | |
#define GOOGLE_ARRAYSIZE(a) \ | |
((sizeof(a) / sizeof(*(a))) / \ | |
static_cast<size_t>(!(sizeof(a) % sizeof(*(a))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment