mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-22 07:02:17 +13:00
Add COUNTOF macro to tools/common.h
This commit is contained in:
parent
c37cc15f44
commit
9d7b581310
3 changed files with 13 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue