Slide 25
Slide 25 text
// call a C function defined as: int add(int a, int b);
const add = Module.cwrap("add", "number", ["number, "number"]);
const two = add(1, 1);
const three = Module.ccall("add", "number", ["number", "number"], [1, 2]);
Emscripten translated function call in JS