diff lwasm/pragma.c @ 513:1260b4eec5a5

Add **pragma which always suppresses listing itself Sometimes you don't want the listing polluted by a pragma statement so add **pragma which will always hide itself from the listing.
author William Astle <lost@l-w.ca>
date Mon, 24 Aug 2020 23:52:23 -0600
parents 74d0c394666e
children 6237505ee1dc
line wrap: on
line diff
--- a/lwasm/pragma.c	Sat Jul 04 16:21:08 2020 -0600
+++ b/lwasm/pragma.c	Mon Aug 24 23:52:23 2020 -0600
@@ -176,6 +176,8 @@
 		l->pragmas |= PRAGMA_CC;
 		as->pragmas &= ~PRAGMA_CC;
 	}
+	if (instab[l->insn].ops[3] == -2)
+		l -> pragmas |= PRAGMA_NOLIST;
 	lw_free(ps);
 }