diff lwasm/macro.c @ 435:5524649f4784

Prevent parse errors when a macro definition is inside a conditional Allow macro definitions to be skipped properly when they are within a conditional construct that is being skipped.
author William Astle <lost@l-w.ca>
date Sat, 08 Apr 2017 21:44:39 -0600
parents 39490cf2d1c2
children a4a58c4c7a41
line wrap: on
line diff
--- a/lwasm/macro.c	Mon Jan 23 22:58:36 2017 -0700
+++ b/lwasm/macro.c	Sat Apr 08 21:44:39 2017 -0600
@@ -43,6 +43,7 @@
 	if (as -> skipcond)
 	{
 		as -> skipmacro = 1;
+		skip_operand(p);
 		return;
 	}