diff lwasm/pass1.c @ 474:74d0c394666e

Add "noexpandcond" pragma (cleans up listings) This pragma will suppress listing of conditionals and any statements that appear within a false conditional block.
author William Astle <lost@l-w.ca>
date Fri, 02 Nov 2018 21:07:50 -0600
parents e97f9a302c6a
children 7e41d6123175
line wrap: on
line diff
--- a/lwasm/pass1.c	Thu Nov 01 23:07:03 2018 -0600
+++ b/lwasm/pass1.c	Fri Nov 02 21:07:50 2018 -0600
@@ -448,7 +448,9 @@
 		}
 		if (as -> skipcond || as -> inmacro || cl -> ltext[0] == 1)
 			cl -> hideline = 1;
-			
+		if (as -> skipcond)
+			cl -> hidecond = 1;
+		
 	nextline:
 		if (sym)
 			lw_free(sym);