From 40f184e52b2903b7ff1caed5c104b9d84e2f0d52 Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Sat, 25 Feb 2023 12:50:08 +0100 Subject: Some clever adjustment to coroutine state. --- misc/examples/coread.c | 1 + 1 file changed, 1 insertion(+) (limited to 'misc/examples') 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); } -- cgit v1.2.3