summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorTyge Lovset <[email protected]>2023-04-07 13:33:06 +0200
committerTyge Lovset <[email protected]>2023-04-07 13:33:06 +0200
commit13eb85e05a88633454df7b62b80737fcc9d12238 (patch)
tree302886fb464409ba5633ffebfcf7186c4671e336 /include
parent2ad41420a973a3f1bd1ca47ab0f61b8f59ab9e66 (diff)
downloadSTC-modified-13eb85e05a88633454df7b62b80737fcc9d12238.tar.gz
STC-modified-13eb85e05a88633454df7b62b80737fcc9d12238.zip
Massive documentation update/improvements.
Reduced benchmarks/plotbench repetition/sizes.
Diffstat (limited to 'include')
-rw-r--r--include/stc/algo/coroutine.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/stc/algo/coroutine.h b/include/stc/algo/coroutine.h
index d29b2cef..b0ecd6b7 100644
--- a/include/stc/algo/coroutine.h
+++ b/include/stc/algo/coroutine.h
@@ -83,16 +83,16 @@ enum {
case __LINE__:; \
} while (0)
-#define cco_yield_2(corocall, ctx) \
- cco_yield_3(corocall, ctx,)
+#define cco_yield_2(corocall2, ctx2) \
+ cco_yield_3(corocall2, ctx2, )
-#define cco_yield_3(corocall, ctx, retval) \
+#define cco_yield_3(corocall2, ctx2, retval) \
do { \
*_state = __LINE__; \
do { \
- corocall; if (cco_suspended(ctx)) return retval; \
+ corocall2; if (cco_suspended(ctx2)) return retval; \
case __LINE__:; \
- } while (cco_alive(ctx)); \
+ } while (cco_alive(ctx2)); \
} while (0)
#define cco_final \