> Le 30 juin 2019 à 20:15, Akim Demaille <[email protected]> a écrit :
> 
> Apparently some compilers break on using #line in macro calls.
> https://stackoverflow.com/questions/28343501/is-it-legal-to-use-the-line-directive-in-a-macro-argument

Well, we could generate each action twice: once for the good guys,
and another for the others.  Something like

>   case 3:
> #if defined __GNUC__
> #line 60 "input.y"
>   { USE ((yyvsp[-4]
> #line 60 "input.y"
>             , yyvsp[-3]
> #line 60 "input.y"
>                 , yyvsp[0]
> #line 60 "input.y"
>                     )); }
> #else
> #line 60 "input.y"
>   { USE ((yyvsp[-4], yyvsp[-3], yyvsp[0])); }
> #end
> #line 1241 "input.c"
>     break;



Reply via email to