Better fallthrough annotation macro.
This commit is contained in:
@@ -1462,9 +1462,7 @@ process_char(escp_t *dev, uint8_t ch)
|
||||
dev->curr_x = dev->left_margin;
|
||||
if (!dev->autofeed)
|
||||
return 1;
|
||||
#ifdef FALLTHROUGH_ANNOTATION
|
||||
[[fallthrough]];
|
||||
#endif
|
||||
fallthrough;
|
||||
|
||||
case 0x0a: /* Line feed */
|
||||
if (dev->font_style & STYLE_DOUBLEWIDTHONELINE) {
|
||||
|
||||
@@ -283,9 +283,7 @@ process_char(prnt_t *dev, uint8_t ch)
|
||||
dev->curr_x = 0;
|
||||
if (!dev->autofeed)
|
||||
return 1;
|
||||
#ifdef FALLTHROUGH_ANNOTATION
|
||||
[[fallthrough]];
|
||||
#endif
|
||||
fallthrough;
|
||||
|
||||
case 0x0a: /* Line feed */
|
||||
dev->curr_x = 0;
|
||||
|
||||
Reference in New Issue
Block a user