From 801e4c4700a21381fd52f9a0197f139c555c03d5 Mon Sep 17 00:00:00 2001 From: mpilman Date: Sun, 17 Feb 2019 14:26:21 -0800 Subject: [PATCH] Make when-macros work by accepting varargs --- flow/actorcompiler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flow/actorcompiler.h b/flow/actorcompiler.h index ac42b40b9a..a519f8426f 100644 --- a/flow/actorcompiler.h +++ b/flow/actorcompiler.h @@ -31,7 +31,7 @@ template struct FutureStream; #define state #define UNCANCELLABLE #define choose if(1) -#define when(x) for(x;;) +#define when(...) for(__VA_ARGS__;;) template T wait( const Future& ); void wait(const Never&); template T waitNext( const FutureStream& );