diff lwasm/pseudo.c @ 133:3c1a80c2fb95

ifdef sym1|sym2 now works
author lost@l-w.ca
date Fri, 12 Aug 2011 00:03:07 -0600
parents 4cf44ff89b08
children fe117454a1e7
line wrap: on
line diff
--- a/lwasm/pseudo.c	Thu Aug 11 23:50:16 2011 -0600
+++ b/lwasm/pseudo.c	Fri Aug 12 00:03:07 2011 -0600
@@ -1086,15 +1086,17 @@
 	
 	lw_free(sym);
 	
-	if (!s && **p != '|')
+	if (!s)
 	{
+		if (**p == '|')
+		{
+			(*p)++;
+			goto again;
+		}
 		as -> skipcond = 1;
 		as -> skipcount = 1;
-		skip_operand(p);
-		return;
 	}
-	(*p)++;
-	goto again;
+	skip_operand(p);
 }
 
 PARSEFUNC(pseudo_parse_ifndef)