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

Method o

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

Source from the content-addressed store, hash-verified

27 }
28}
29em::val NativeEnumUsageInterface::o(const CppType& self, const em::val& w_o) {
30 try {
31 auto r = self->o(::djinni::Optional<std::experimental::optional, ::djinni_generated::NativeColor>::toCpp(w_o));
32 return ::djinni::Optional<std::experimental::optional, ::djinni_generated::NativeColor>::fromCpp(r);
33 }
34 catch(const std::exception& e) {
35 return ::djinni::ExceptionHandlingTraits<::djinni::Optional<std::experimental::optional, ::djinni_generated::NativeColor>>::handleNativeException(e);
36 }
37}
38em::val NativeEnumUsageInterface::l(const CppType& self, const em::val& w_l) {
39 try {
40 auto r = self->l(::djinni::List<::djinni_generated::NativeColor>::toCpp(w_l));

Callers

nothing calls this directly

Calls 1

fromCppFunction · 0.50

Tested by

no test coverage detected