18 #define MENU_COMMANDLINE_MAX 32 19 #define MENU_ARGS_MAX 3 20 #define MENU_COMMAND_MAX 14 100 Menu(
const char *prompt,
const struct command *
commands, uint8_t entries, preprompt ppfunc = 0);
103 void set_limits(uint8_t commandline_max, uint8_t args_max);
123 int8_t
_call(uint8_t n, uint8_t argc);
165 #define MENU(name, prompt, commands) \ 166 static const char __menu_name__ ## name[] = prompt; \ 167 static Menu name(__menu_name__ ## name, commands, ARRAY_SIZE(commands)) 169 #define MENU2(name, prompt, commands, preprompt) \ 170 static const char __menu_name__ ## name[] = prompt; \ 171 static Menu name(__menu_name__ ## name, commands, ARRAY_SIZE(commands), preprompt)
#define FUNCTOR_DECLARE(name, rettype,...)