#pragma once #define MENU_TYPE_SETTING_BOOL 0 #define MENU_TYPE_SETTING_U8 1 #define MENU_TYPE_DISPLAY 2 #define MENU_TYPE_FUNCTION 3 #define IS_SETTING(x) (x<3) #define MENU_DISPLAY_TYPE_DEFAULT 0 // specific for setting type if IS_SETTING(), MENU_DISPLAY_STRING otherwise #define MENU_DISPLAY_TYPE_STRING 1 #define MENU_DISPLAY_TYPE_FUNCTION 2 #define MENU_DISPLAY_TYPE_NAME_FUNCTION 3 #define MENU_DISPLAY_TYPE_NAME_CSFUNCTION 4 #define MENU_DISPLAY_TYPE_U8_METERS 5 #define MENU_DISPLAY_TYPE_U8_SECONDS 6 #define menu_push(x) { if(__menu_num