Kuvée / TestConsoleLib

Dependencies:   Terminal

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;