comparison 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
comparison
equal deleted inserted replaced
434:052c5f335a92 435:5524649f4784
41 l -> len = 0; 41 l -> len = 0;
42 l -> hideline = 1; 42 l -> hideline = 1;
43 if (as -> skipcond) 43 if (as -> skipcond)
44 { 44 {
45 as -> skipmacro = 1; 45 as -> skipmacro = 1;
46 skip_operand(p);
46 return; 47 return;
47 } 48 }
48 49
49 if (as -> inmacro) 50 if (as -> inmacro)
50 { 51 {