Fix macros when and unless

Both support implicit progn, not just one expression.
This commit is contained in:
madmaurice 2021-04-06 23:36:06 +02:00
parent 5c37830ef4
commit b930ed8eba

View file

@ -720,7 +720,7 @@ sub macro_when {
my $ts = shift;
my $condition = parser_expr($ts);
my $work = parser_expr($ts);
my $work = macro_progn($ts);
return sub {
my $ctx = shift;
@ -739,7 +739,7 @@ sub macro_unless {
my $ts = shift;
my $condition = parser_expr($ts);
my $work = parser_expr($ts);
my $work = macro_progn($ts);
return sub {
my $ctx = shift;