summaryrefslogtreecommitdiffhomepage
path: root/include/stc/algo/coroutine.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-06-21 13:10:18 +0200
committerTyge Løvset <[email protected]>2023-06-21 13:10:18 +0200
commite27a51708bf1ee4b22842b4a0924b3ded26f630c (patch)
tree0510bd099e25735f972ca8c9780f285efef9764d /include/stc/algo/coroutine.h
parent08f75cf88252a3a95ee8eb8464295bcd177ec74f (diff)
downloadSTC-modified-e27a51708bf1ee4b22842b4a0924b3ded26f630c.tar.gz
STC-modified-e27a51708bf1ee4b22842b4a0924b3ded26f630c.zip
Update of cstr_append_uninit().
Diffstat (limited to 'include/stc/algo/coroutine.h')
-rw-r--r--include/stc/algo/coroutine.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stc/algo/coroutine.h b/include/stc/algo/coroutine.h
index e0cf5488..e20fd8ad 100644
--- a/include/stc/algo/coroutine.h
+++ b/include/stc/algo/coroutine.h
@@ -101,7 +101,7 @@ typedef struct cco_base {
int cco_state;
} cco_base;
-#define cco_cast(closure) \
+#define cco_base_cast(closure) \
((cco_base *)(closure) + 0*sizeof((cco_resume(closure), (int*)0 == &(closure)->cco_state)))
#define cco_resume(closure) (closure)->cco_fn(closure)