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

Method cppProtoToString

test-suite/generated-src/wasm/NativeProtoTests.cpp:53–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51 }
52}
53std::string NativeProtoTests::cppProtoToString(const em::val& w_x) {
54 try {
55 auto r = ::testsuite::ProtoTests::cppProtoToString(::djinni::Protobuf<::djinni::test2::PersistingState, ::djinni::JsClassName<'p','r','o','t','o','t','e','s','t','2','.','P','e','r','s','i','s','t','i','n','g','S','t','a','t','e'>>::toCpp(w_x));
56 return ::djinni::String::fromCpp(r);
57 }
58 catch(const std::exception& e) {
59 return ::djinni::ExceptionHandlingTraits<::djinni::String>::handleNativeException(e);
60 }
61}
62em::val NativeProtoTests::stringToCppProto(const std::string& w_x) {
63 try {
64 auto r = ::testsuite::ProtoTests::stringToCppProto(::djinni::String::toCpp(w_x));

Callers

nothing calls this directly

Calls 1

fromCppFunction · 0.50

Tested by

no test coverage detected