diff options
| author | Tyge Løvset <[email protected]> | 2023-03-01 14:36:38 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-03-01 14:36:38 +0100 |
| commit | 78a7e85535fd02e643bf98103223d4218e80133f (patch) | |
| tree | be22b46aaa7ac48b29125863d27db591cf12dcdf /include/stc | |
| parent | 8fdcfbf621b5e8c1298a89579594db0817adce26 (diff) | |
| download | STC-modified-78a7e85535fd02e643bf98103223d4218e80133f.tar.gz STC-modified-78a7e85535fd02e643bf98103223d4218e80133f.zip | |
Moved algorithm examples to algo folder.
Diffstat (limited to 'include/stc')
| -rw-r--r-- | include/stc/algo/coroutine.h | 5 |
1 files changed, 1 insertions, 4 deletions
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 <stdio.h> -#include <stdbool.h> #include <stc/algo/coroutine.h> 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 |
