| 45 | } |
| 46 | } |
| 47 | em::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 | } |
| 56 | em::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)); |