diff options
Diffstat (limited to 'frontend/common/menu.h')
-rw-r--r-- | frontend/common/menu.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/frontend/common/menu.h b/frontend/common/menu.h index 21c589e..8260e51 100644 --- a/frontend/common/menu.h +++ b/frontend/common/menu.h @@ -29,12 +29,18 @@ typedef struct const char *help; } menu_entry; +#define mee_handler_id_h(name, id, handler, help) \ + { name, MB_NONE, id, NULL, 0, 0, 0, 1, 0, 1, handler, NULL, NULL, help } + #define mee_handler_id(name, id, handler) \ - { name, MB_NONE, id, NULL, 0, 0, 0, 1, 0, 1, handler, NULL, NULL, NULL } + mee_handler_id_h(name, id, handler, NULL) #define mee_handler(name, handler) \ mee_handler_id(name, MA_NONE, handler) +#define mee_handler_h(name, handler, help) \ + mee_handler_id_h(name, MA_NONE, handler, help) + #define mee_label(name) \ { name, MB_NONE, MA_NONE, NULL, 0, 0, 0, 1, 0, 0, NULL, NULL, NULL, NULL } |