diff 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
line wrap: on
line diff
--- a/lwasm/list.c	Thu Nov 30 16:54:12 2023 -0700
+++ b/lwasm/list.c	Fri Dec 01 21:11:56 2023 -0700
@@ -73,6 +73,10 @@
 		char *linespec;
 
 		nl = cl -> next;
+		if (CURPRAGMA(cl, PRAGMA_NOLISTCODE))
+		{
+			continue;
+		}
 		if (CURPRAGMA(cl, PRAGMA_NOLIST))
 		{
 			if (cl -> outputl <= 0)