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

Function EMSCRIPTEN_BINDINGS

test/embind/test_negative_constants.cpp:15–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13const int negative_int_num = -10;
14
15EMSCRIPTEN_BINDINGS(constants) {
16 emscripten::constant("NEGATIVE_FLOAT_NUM", NEGATIVE_FLOAT_NUM);
17 emscripten::constant("NEGATIVE_INT_NUM", NEGATIVE_INT_NUM);
18 emscripten::constant("negative_float_num", negative_float_num);
19 emscripten::constant("negative_double_num", negative_double_num);
20 emscripten::constant("negative_int_num", negative_int_num);
21}
22
23int main() {
24 EM_ASM(

Callers

nothing calls this directly

Calls 1

constantFunction · 0.85

Tested by

no test coverage detected