diff lwasm/list.c @ 81:428068681cbf

Added nolist pragma to suppress listing output of non-code generating lines
author Lost Wizard (lost@starbug3)
date Wed, 25 May 2011 19:13:33 -0600
parents f55650f5e9b8
children 43a3f1068027
line wrap: on
line diff
--- a/lwasm/list.c	Wed May 18 20:09:33 2011 -0600
+++ b/lwasm/list.c	Wed May 25 19:13:33 2011 -0600
@@ -58,6 +58,11 @@
 	for (cl = as -> line_head; cl; cl = nl)
 	{
 		nl = cl -> next;
+		if (CURPRAGMA(cl, PRAGMA_NOLIST))
+		{
+			if (cl -> outputl <= 0)
+				continue;
+		}
 		if (cl -> noexpand_start)
 		{
 			obytelen = 0;