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

Function EMSCRIPTEN_BINDINGS

test/embind/test_float_constants.cpp:14–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12const double euler = 2.7182818;
13
14EMSCRIPTEN_BINDINGS(constants) {
15 emscripten::constant("PI", PI);
16 emscripten::constant("EULER", EULER);
17 emscripten::constant("pi", pi);
18 emscripten::constant("euler", euler);
19}
20
21int main() {
22 EM_ASM(

Callers

nothing calls this directly

Calls 1

constantFunction · 0.85

Tested by

no test coverage detected