mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 23:31:53 -05: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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user