diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2021-01-23 18:54:50 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2021-01-23 18:56:06 +0900 |
commit | 62283f7a7a87fa2f353814a3ef6a3b1cab2a32b8 (patch) | |
tree | 3b94c1958f3ca29d7776f8a3afe1f1944403501f /coroutine/emscripten/Context.c | |
parent | f12c33b6112b38f51ae1813b19f4c331ede2af2e (diff) |
coroutine/emscripten/: Experimentally support emscripten fiber API
Diffstat (limited to 'coroutine/emscripten/Context.c')
-rw-r--r-- | coroutine/emscripten/Context.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/coroutine/emscripten/Context.c b/coroutine/emscripten/Context.c new file mode 100644 index 0000000000..75c088daaa --- /dev/null +++ b/coroutine/emscripten/Context.c @@ -0,0 +1,8 @@ +#include "Context.h" + +void coroutine_trampoline(void * _context) +{ + struct coroutine_context * context = _context; + + context->entry_func(context->from, context); +} |