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& );