-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmacros.h
More file actions
executable file
·22 lines (16 loc) · 760 Bytes
/
macros.h
File metadata and controls
executable file
·22 lines (16 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef MENU__SUBMENU_MACROS_H
#define MENU__SUBMENU_MACROS_H
#include "../_base/helpersMacros.h"
#include "../menu/Menu.h"
/////////////////////////////////////////////////////////////////////////////////////////////////
// SUBMENU macros
// Used as nested function at MENU macros
/////////////////////////////////////////////////////////////////////////////////////////////////
// Usage example:
// MENU(mySubmenu, ...)
// MENU(..., SUBMENU(mySubmenu))
// ... - omited for example args for MENU macros (see MENU macros for details)
#define VAR_NAME_FOR_LIST__SUBMENU(id, ...) &id##Menu,
#define CHILD_MACRO__SUBMENU(id) CHILD_MACRO__BLANK()
/////////////////////////////////////////////////////////////////////////////////////////////////
#endif