mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
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:
commit
c937b6d180
33 changed files with 71 additions and 67 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue