diff options
Diffstat (limited to 'src/option.h')
-rw-r--r-- | src/option.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/option.h b/src/option.h index a791e250..7deb5f58 100644 --- a/src/option.h +++ b/src/option.h @@ -202,6 +202,10 @@ inline bool is_eq(const char * p, const char * n) { if (is_eq(p, #name)) \ return ((name ## _handler).parent = this, &(name ## _handler)) +#define OPT_ALT(name, alt) \ + if (is_eq(p, #name) || is_eq(p, #alt)) \ + return ((name ## _handler).parent = this, &(name ## _handler)) + #define OPT_(name) \ if (! *(p + 1) || \ ((name ## _handler).wants_arg && \ |