From bc6b781548c10935ec6e72e42ece905f46105ec3 Mon Sep 17 00:00:00 2001 From: Tyge Lovset Date: Wed, 21 Jun 2023 00:35:30 +0200 Subject: Minor fix. --- include/stc/algo/coroutine.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/stc/algo/coroutine.h b/include/stc/algo/coroutine.h index 727ce2a8..a2496d25 100644 --- a/include/stc/algo/coroutine.h +++ b/include/stc/algo/coroutine.h @@ -69,7 +69,7 @@ enum { /* Always use { } after cco_switch(x), cco_case(val), and cco_default. */ #define cco_switch(x) for (intmax_t _sw = (intmax_t)(x), _once=1; _once; _once=0) #define cco_case(val) if (_sw == (intmax_t)(val)) -#define cco_default else +#define cco_default #define cco_routine(co) \ for (int *_state = &(co)->cco_state; *_state != cco_state_done; *_state = cco_state_done) \ -- cgit v1.2.3