Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: Terminal
Diff: menuitem.h
- Revision:
- 6:e992366d0684
- Parent:
- 5:4a240f717b9d
- Child:
- 8:170f8c0bb5ee
--- a/menuitem.h Sat May 02 00:41:23 2015 +0000 +++ b/menuitem.h Mon May 04 14:43:35 2015 +0000 @@ -9,6 +9,8 @@ typedef char * (*callback_function)(bool); // type for conciseness #define MAX_NAME_LEN (80-10-10) +#define MAKE_PORT(x, io) (new Menu##io(#x, io(x))) //use this macro to create a port (it saves name as well as creatign the IO +#define REUSE_PORT(x, io, port) (new Menu##io(#x, port)) //use this macro if you created the port externally class MenuAction; class Page;