Merge pull request #102419 from Ivorforce/std-size

Use `std::size` instead of `sizeof(a) / sizeof(a[0])` pattern throughout the codebase.
This commit is contained in:
Thaddeus Crews 2025-03-07 15:12:25 -06:00
commit c937b6d180
No known key found for this signature in database
GPG key ID: 62181B86FE9E5D84
33 changed files with 71 additions and 67 deletions

View file

@ -45,7 +45,7 @@
#include "thirdparty/swappy-frame-pacing/swappyVk.h"
#endif
#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
#define ARRAY_SIZE(a) std::size(a)
#define PRINT_NATIVE_COMMANDS 0