diff options
Diffstat (limited to 'include/base/coro.h')
-rw-r--r-- | include/base/coro.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/base/coro.h b/include/base/coro.h new file mode 100644 index 0000000..e8f23b1 --- /dev/null +++ b/include/base/coro.h @@ -0,0 +1,7 @@ +#pragma once + +typedef struct Coro Coro; + +Coro* coro·make(uintptr stk, uintptr (*func)(Coro*, uintptr)); +uintptr coro·yield(Coro *c, uintptr arg); +int coro·free(Coro *c); |