| 51 | } |
| 52 | } |
| 53 | std::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 | } |
| 62 | em::val NativeProtoTests::stringToCppProto(const std::string& w_x) { |
| 63 | try { |
| 64 | auto r = ::testsuite::ProtoTests::stringToCppProto(::djinni::String::toCpp(w_x)); |