From 78a7e85535fd02e643bf98103223d4218e80133f Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Wed, 1 Mar 2023 14:36:38 +0100 Subject: Moved algorithm examples to algo folder. --- include/stc/algo/coroutine.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'include/stc') diff --git a/include/stc/algo/coroutine.h b/include/stc/algo/coroutine.h index f3e42165..84be4a4e 100644 --- a/include/stc/algo/coroutine.h +++ b/include/stc/algo/coroutine.h @@ -24,7 +24,6 @@ #define STC_COROUTINE_INCLUDED /* #include -#include #include struct iterate { @@ -61,7 +60,6 @@ int main(void) { enum { cco_state_final = -1, cco_state_expired = -2, - cco_state_illegal = -3, }; #define cco_alive(ctx) ((ctx)->cco_state > 0) @@ -74,8 +72,7 @@ enum { #define cco_end(retval) \ *_state = cco_state_expired; break; \ - default: assert(!"illegal coroutine state"); \ - goto _cco_final_; /* avoid unused-warning */ \ + default: goto _cco_final_; /* avoid unused-warning */ \ } \ return retval -- cgit v1.2.3