1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/coroutine/asyncify/Context.c
Yuta Saito a4b73f1ba8 [wasm] add coroutine/asyncify implementation
set the default coroutine_type as asyncify when wasi
2022-01-19 11:19:06 +09:00

10 lines
276 B
C

#include "Context.h"
void coroutine_trampoline(void * _start, void * _context)
{
coroutine_start start = (coroutine_start)_start;
struct coroutine_context * context = _context;
rb_wasm_set_stack_pointer(context->current_sp);
start(context->from, context);
}