1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

coroutine/emscripten/: Experimentally support emscripten fiber API

This commit is contained in:
Yusuke Endoh 2021-01-23 18:54:50 +09:00
parent f12c33b611
commit 62283f7a7a
3 changed files with 89 additions and 1 deletions

View file

@ -0,0 +1,8 @@
#include "Context.h"
void coroutine_trampoline(void * _context)
{
struct coroutine_context * context = _context;
context->entry_func(context->from, context);
}