| 105 | } |
| 106 | } |
| 107 | std::string NativeProtoTests::optionalProtoToString(const em::val& w_x) { |
| 108 | try { |
| 109 | auto r = ::testsuite::ProtoTests::optionalProtoToString(::djinni::Optional<std::experimental::optional, ::djinni::Protobuf<::djinni::test::Person, ::djinni::JsClassName<'p','r','o','t','o','t','e','s','t','.','P','e','r','s','o','n'>>>::toCpp(w_x)); |
| 110 | return ::djinni::String::fromCpp(r); |
| 111 | } |
| 112 | catch(const std::exception& e) { |
| 113 | return ::djinni::ExceptionHandlingTraits<::djinni::String>::handleNativeException(e); |
| 114 | } |
| 115 | } |
| 116 | em::val NativeProtoTests::stringToOptionalProto(const std::string& w_x) { |
| 117 | try { |
| 118 | auto r = ::testsuite::ProtoTests::stringToOptionalProto(::djinni::String::toCpp(w_x)); |