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

Function EMSCRIPTEN_BINDINGS

test/embind/test_finalization.cpp:21–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19using namespace emscripten;
20
21EMSCRIPTEN_BINDINGS(Marci) {
22 class_<Foo>("Foo").smart_ptr_constructor<std::shared_ptr<Foo>>(
23 "Foo", &std::make_shared<Foo, std::string>);
24
25 function("foo", foo);
26 function("pFoo", pFoo, allow_raw_pointers());
27}

Callers

nothing calls this directly

Calls 2

allow_raw_pointersClass · 0.85
functionFunction · 0.50

Tested by

no test coverage detected