Mercurial > hg > index.cgi
comparison lwasm/list.c @ 562:6237505ee1dc
Add pragma nolistcode which works like nolist but also suppresses code lines
It is occasionally useful to suppress parts of a listing that generate code.
This nolistcode pragma works exactly like nolist but also suppresses code
for just that reason.
author | William Astle <lost@l-w.ca> |
---|---|
date | Fri, 01 Dec 2023 21:11:56 -0700 |
parents | 3a173cefc814 |
children | 0ae10ecfba1e |
comparison
equal
deleted
inserted
replaced
561:a6a9d46f071f | 562:6237505ee1dc |
---|---|
71 for (cl = as -> line_head; cl; cl = nl) | 71 for (cl = as -> line_head; cl; cl = nl) |
72 { | 72 { |
73 char *linespec; | 73 char *linespec; |
74 | 74 |
75 nl = cl -> next; | 75 nl = cl -> next; |
76 if (CURPRAGMA(cl, PRAGMA_NOLISTCODE)) | |
77 { | |
78 continue; | |
79 } | |
76 if (CURPRAGMA(cl, PRAGMA_NOLIST)) | 80 if (CURPRAGMA(cl, PRAGMA_NOLIST)) |
77 { | 81 { |
78 if (cl -> outputl <= 0) | 82 if (cl -> outputl <= 0) |
79 continue; | 83 continue; |
80 } | 84 } |