summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--include/stc/coroutine.h2
-rw-r--r--misc/examples/coroutines/generator.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/stc/coroutine.h b/include/stc/coroutine.h
index 7917878a..146f3efb 100644
--- a/include/stc/coroutine.h
+++ b/include/stc/coroutine.h
@@ -135,7 +135,7 @@ typedef enum {
* Generators
*/
-#define cco_generator(Name, ...) \
+#define cco_iter_struct(Name, ...) \
typedef Name Name##_value; \
typedef struct { \
Name##_value* ref; \
diff --git a/misc/examples/coroutines/generator.c b/misc/examples/coroutines/generator.c
index c092b92d..3f51ce9c 100644
--- a/misc/examples/coroutines/generator.c
+++ b/misc/examples/coroutines/generator.c
@@ -8,7 +8,7 @@ typedef struct {
int a, b, c;
} Triple;
-cco_generator(Triple,
+cco_iter_struct(Triple,
int count;
);