global: Add a NELEMS macro

This commit is contained in:
tgsm 2021-10-19 04:23:12 -04:00
parent 9207816fb5
commit 92e77e2919

View File

@ -7,4 +7,6 @@
#include "config.h" // MUST COME BEFORE ANY OTHER GAMEFREAK HEADERS
#include "assert.h"
#define NELEMS(a) (sizeof(a) / sizeof(*(a)))
#endif //POKEHEARTGOLD_GLOBAL_H