Skip to content
Snippets Groups Projects
Commit c6f1337f authored by Scott Lahteine's avatar Scott Lahteine
Browse files

NOOP macro for do-nothing macros

parent c2145566
Branches
Tags
No related merge requests found
...@@ -60,4 +60,6 @@ ...@@ -60,4 +60,6 @@
#define PENDING(NOW,SOON) ((long)(NOW-(SOON))<0) #define PENDING(NOW,SOON) ((long)(NOW-(SOON))<0)
#define ELAPSED(NOW,SOON) (!PENDING(NOW,SOON)) #define ELAPSED(NOW,SOON) (!PENDING(NOW,SOON))
#define NOOP do{}while(0)
#endif //__MACROS_H #endif //__MACROS_H
...@@ -156,8 +156,8 @@ ...@@ -156,8 +156,8 @@
FORCE_INLINE void lcd_reset_alert_level() {} FORCE_INLINE void lcd_reset_alert_level() {}
FORCE_INLINE bool lcd_detected(void) { return true; } FORCE_INLINE bool lcd_detected(void) { return true; }
#define LCD_MESSAGEPGM(x) do{}while(0) #define LCD_MESSAGEPGM(x) NOOP
#define LCD_ALERTMESSAGEPGM(x) do{}while(0) #define LCD_ALERTMESSAGEPGM(x) NOOP
#endif //ULTRA_LCD #endif //ULTRA_LCD
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment