Use ARRAY_SIZE macro in asserts, fix ARRAY_SIZE macro to match

This commit is contained in:
LagoLunatic
2024-06-22 09:57:16 -04:00
parent 0d66571e86
commit d419a25be3
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
#include "dolphin/types.h"
#define ARRAY_SIZE(o) (sizeof((o)) / sizeof(*(o)))
#define ARRAY_SIZE(o) (sizeof(o) / sizeof(o[0]))
// Align X to the previous N bytes (N must be power of two)
#define ALIGN_PREV(X, N) ((X) & ~((N)-1))