Make when-macros work by accepting varargs

This commit is contained in:
mpilman 2019-02-17 14:26:21 -08:00 committed by Alex Miller
parent 6b0ef8341c
commit 801e4c4700
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ template<typename T> struct FutureStream;
#define state
#define UNCANCELLABLE
#define choose if(1)
#define when(x) for(x;;)
#define when(...) for(__VA_ARGS__;;)
template <class T> T wait( const Future<T>& );
void wait(const Never&);
template <class T> T waitNext( const FutureStream<T>& );