diff options
| author | dannye <33dannye@gmail.com> | 2023-04-25 19:52:12 -0500 |
|---|---|---|
| committer | dannye <33dannye@gmail.com> | 2023-04-25 19:52:12 -0500 |
| commit | 667f1febbe59355b1ffea68619e5e5486fd3c408 (patch) | |
| tree | 9a3ca97fea7cb54d1db9c23ac8c2a405a13f6f5c /tools/make_patch.c | |
| parent | Fix trainer parties' comments (#104) (diff) | |
| parent | Update `EndBug` to v9. (diff) | |
| download | pokeyellow-667f1febbe59355b1ffea68619e5e5486fd3c408.tar.gz pokeyellow-667f1febbe59355b1ffea68619e5e5486fd3c408.tar.xz pokeyellow-667f1febbe59355b1ffea68619e5e5486fd3c408.zip | |
Merge branch 'master' of https://github.com/pret/pokered
Diffstat (limited to 'tools/make_patch.c')
| -rw-r--r-- | tools/make_patch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/make_patch.c b/tools/make_patch.c index 71c6b455..ecfd67b2 100644 --- a/tools/make_patch.c +++ b/tools/make_patch.c @@ -165,7 +165,7 @@ int strfind(const char *s, const char *list[], int count) { return -1; } -#define vstrfind(s, ...) strfind(s, (const char *[]){__VA_ARGS__}, sizeof (const char *[]){__VA_ARGS__} / sizeof(const char *)) +#define vstrfind(s, ...) strfind(s, (const char *[]){__VA_ARGS__}, COUNTOF((const char *[]){__VA_ARGS__})) int parse_arg_value(const char *arg, bool absolute, const struct Symbol *symbols, const char *patch_name) { // Comparison operators for "ConditionValueB" evaluate to their particular values |
