MCPcopy Create free account
hub / github.com/Snapchat/djinni / s

Method s

test-suite/generated-src/wasm/NativeEnumUsageInterface.cpp:47–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 }
46}
47em::val NativeEnumUsageInterface::s(const CppType& self, const em::val& w_s) {
48 try {
49 auto r = self->s(::djinni::Set<::djinni_generated::NativeColor>::toCpp(w_s));
50 return ::djinni::Set<::djinni_generated::NativeColor>::fromCpp(r);
51 }
52 catch(const std::exception& e) {
53 return ::djinni::ExceptionHandlingTraits<::djinni::Set<::djinni_generated::NativeColor>>::handleNativeException(e);
54 }
55}
56em::val NativeEnumUsageInterface::m(const CppType& self, const em::val& w_m) {
57 try {
58 auto r = self->m(::djinni::Map<::djinni_generated::NativeColor, ::djinni_generated::NativeColor>::toCpp(w_m));

Callers

nothing calls this directly

Calls 1

fromCppFunction · 0.50

Tested by

no test coverage detected