summaryrefslogtreecommitdiff
path: root/coroutine/emscripten/Context.c
diff options
context:
space:
mode:
Diffstat (limited to 'coroutine/emscripten/Context.c')
-rw-r--r--coroutine/emscripten/Context.c8
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);
+}