summaryrefslogtreecommitdiffhomepage
path: root/misc
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-02-25 12:50:08 +0100
committerTyge Løvset <[email protected]>2023-02-25 12:50:08 +0100
commit40f184e52b2903b7ff1caed5c104b9d84e2f0d52 (patch)
treee86173271a84df0b8cbbcd1a7096bbb7fa2bbcbd /misc
parent12a64923057aea6d09f541356bb5d9c929816b82 (diff)
downloadSTC-modified-40f184e52b2903b7ff1caed5c104b9d84e2f0d52.tar.gz
STC-modified-40f184e52b2903b7ff1caed5c104b9d84e2f0d52.zip
Some clever adjustment to coroutine state.
Diffstat (limited to 'misc')
-rw-r--r--misc/examples/coread.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/misc/examples/coread.c b/misc/examples/coread.c
index a9381db8..89e06b71 100644
--- a/misc/examples/coread.c
+++ b/misc/examples/coread.c
@@ -37,4 +37,5 @@ int main(void) {
// stop after 15 lines:
if (n == 15) cco_stop(&z);
}
+ printf("state %d\n", z.cco_state);
}