From e3116e473b8a0ac9870bbd1c62ffd89992163bff Mon Sep 17 00:00:00 2001 From: Nick Chambers Date: Sun, 19 Jun 2022 01:15:13 -0500 Subject: [PATCH] Update GARGOYLE_EZ_OPT to match gargoyle_opt --- include/gargoyle/sleuth.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/gargoyle/sleuth.h b/include/gargoyle/sleuth.h index 8e9ffc8..8186f56 100644 --- a/include/gargoyle/sleuth.h +++ b/include/gargoyle/sleuth.h @@ -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);