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

Function EM_JS

test/core/test_dwarf.cpp:3–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include <emscripten.h>
2
3EM_JS(int, out_to_js, (int x), {})
4
5class MyClass {
6public:
7 void foo();
8 void bar();
9};
10
11void __attribute__((noinline)) MyClass::foo() {
12 out_to_js(0); // line 12
13 out_to_js(1);
14 out_to_js(2);
15}
16
17void __attribute__((always_inline)) MyClass::bar() {
18 out_to_js(3);

Calls

no outgoing calls

Tested by

no test coverage detected