Update GARGOYLE_EZ_OPT to match gargoyle_opt

This commit is contained in:
Nick Chambers 2022-06-19 01:15:13 -05:00
parent e7d0b2c114
commit e3116e473b
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ struct gargoyle_opt {
};
#define GARGOYLE_MK_OPT(brand) brand, (sizeof(brand) - 1)
#define GARGOYLE_EZ_OPT(brand) brand, (sizeof(brand) - 1), 0[brand] // >:)
#define GARGOYLE_EZ_OPT(brand, val) brand, (sizeof(brand) - 1), 0[brand] /* >:) */, &val, sizeof(val)
struct gargoyle_opt *gargoyle_find_brand(uint16_t optc, struct gargoyle_opt *optv, const char *brand);
struct gargoyle_opt *gargoyle_find_emblem(uint16_t optc, struct gargoyle_opt *optv, const char emblem);