MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / init_manually

Method init_manually

test/test_fibers.cpp:22–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 }
21
22 void init_manually(em_arg_callback_func entry, void *arg) {
23 context.stack_base = c_stack + sizeof(c_stack);
24 context.stack_limit = c_stack;
25 context.stack_ptr = context.stack_base;
26 context.entry = entry;
27 context.user_data = arg;
28 context.asyncify_data.stack_ptr = asyncify_stack;
29 context.asyncify_data.stack_limit = asyncify_stack + sizeof(asyncify_stack);
30 }
31
32 void swap(emscripten_fiber_t *fiber) {
33 emscripten_fiber_swap(&context, fiber);

Callers 1

mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected