summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKurausukun <lord.uber1@gmail.com>2021-02-11 23:06:33 -0500
committerKurausukun <lord.uber1@gmail.com>2021-02-11 23:06:33 -0500
commit2ff02b3c5ae6791fa19ff367779c03c95923b779 (patch)
tree29e1cf8b18f451a3814844f6dec055703ec79c23 /include
parent6c77c7a714e2e3dc674b24d8aaa96ccf63d51d95 (diff)
fix whitespace, update dex category macro
Diffstat (limited to 'include')
-rw-r--r--include/pokedex_screen.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/pokedex_screen.h b/include/pokedex_screen.h
index 507750c81..72754ca63 100644
--- a/include/pokedex_screen.h
+++ b/include/pokedex_screen.h
@@ -11,10 +11,7 @@
#define DEX_CATEGORY_URBAN 7
#define DEX_CATEGORY_RARE 8
-#define DEX_CATEGORY_SIZE (sizeof(gDexCategories)/sizeof(struct { \
- const struct PokedexCategoryPage * page; \
- u8 count; \
- }))
+#define DEX_CATEGORY_SIZE NELEMS(gDexCategories)
#include "pokedex.h"