diff options
| author | Tyge Løvset <[email protected]> | 2023-07-04 09:35:00 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-07-04 09:35:00 +0200 |
| commit | e63a3dd6545261f5236a3d7e1c2be6571871b689 (patch) | |
| tree | b36d1fdf142b79f2ca6706813bed47f6ea73c756 /docs | |
| parent | 433e6fd36912d1c584fbf206f99a3a982b29e9dc (diff) | |
| download | STC-modified-e63a3dd6545261f5236a3d7e1c2be6571871b689.tar.gz STC-modified-e63a3dd6545261f5236a3d7e1c2be6571871b689.zip | |
Removed cco_switch; won't work without state.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ccommon_api.md | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/docs/ccommon_api.md b/docs/ccommon_api.md index b30bdda6..d39f6de6 100644 --- a/docs/ccommon_api.md +++ b/docs/ccommon_api.md @@ -370,8 +370,8 @@ int main() ### Coroutine API To resume the coroutine from where it was suspended with *cco_yield()*: call the coroutine again. -**Note**: *cco_yield()* / *cco_await()* may not be called inside a `switch` statement; either use -`if-else-if` constructs, or `cco_switch / cco_case / cco_default` for switch-emulation instead. +**Note**: *cco_yield()* / *cco_await()* may not be called inside a `switch` statement; use +`if-else-if` constructs instead. | | Function / operator | Description | |:----------|:-------------------------------------|:----------------------------------------| @@ -416,10 +416,6 @@ To resume the coroutine from where it was suspended with *cco_yield()*: call the | | Time functions: | | | `double` | `cco_time(void)` | Return secs with usec prec. since Epoch | | | `cco_sleep(double sec)` | Sleep for seconds (msec or usec prec.) | -| | Emulate switch: | | -| | `cco_switch(x) { }` | Like switch syntax | -| | `cco_case(val) { }` | Braces are required. Fall-through if no break; | -| | `cco_default { }` | Default action | --- ## RAII scope macros |
