#include <stdio.h>
#include <string.h>
+#include <ccan/coroutine/coroutine.h>
+
/**
* generator - generators for C
*
return 1;
if (strcmp(argv[1], "depends") == 0) {
- printf("ccan/build_assert\n");
- printf("ccan/ptrint\n");
printf("ccan/alignof\n");
+ printf("ccan/coroutine\n");
printf("ccan/cppmagic\n");
printf("ccan/compiler\n");
return 0;
}
+ if (strcmp(argv[1], "ported") == 0) {
+#if COROUTINE_AVAILABLE
+ printf("\n");
+ return 1;
+#else
+ printf("Needs coroutine support\n");
+#endif
+ }
+
if (strcmp(argv[1], "testdepends") == 0) {
printf("ccan/str\n");
return 0;