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

Function EM_ASM

test/embind/test_val.cpp:452–455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

450
451 test("template<typename... Args> val operator()(Args&&... args)");
452 EM_ASM(
453 f = function() {
454 return 2;
455 };
456 );
457 ensure(val::global("f")().as<int>() == 2);
458 ensure_not(val::global("f")().as<int>() == 3);

Callers 15

force_memory_growthFunction · 0.70
test_pthreads.cppFile · 0.70
unsuspendFunction · 0.70
mainFunction · 0.70
mainFunction · 0.70
mainFunction · 0.70
test_val.cppFile · 0.70
mainFunction · 0.70
mainFunction · 0.70
mainFunction · 0.70
mainFunction · 0.70
mainFunction · 0.70

Calls 1

functionFunction · 0.50

Tested by

no test coverage detected