///
/// AcousticConnectRN-Swift-Cxx-Bridge.cpp
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
/// https://github.com/mrousavy/nitro
/// Copyright © 2025 Marc Rousavy @ Margelo
///

#include "AcousticConnectRN-Swift-Cxx-Bridge.hpp"

// Include C++ implementation defined types
#include "AcousticConnectRN-Swift-Cxx-Umbrella.hpp"
#include "HybridAcousticConnectRNSpecSwift.hpp"

namespace margelo::nitro::acousticconnectrn::bridge::swift {

  // pragma MARK: std::shared_ptr<margelo::nitro::acousticconnectrn::HybridAcousticConnectRNSpec>
  std::shared_ptr<margelo::nitro::acousticconnectrn::HybridAcousticConnectRNSpec> create_std__shared_ptr_margelo__nitro__acousticconnectrn__HybridAcousticConnectRNSpec_(void* _Nonnull swiftUnsafePointer) {
    AcousticConnectRN::HybridAcousticConnectRNSpec_cxx swiftPart = AcousticConnectRN::HybridAcousticConnectRNSpec_cxx::fromUnsafe(swiftUnsafePointer);
    return std::make_shared<margelo::nitro::acousticconnectrn::HybridAcousticConnectRNSpecSwift>(swiftPart);
  }
  void* _Nonnull get_std__shared_ptr_margelo__nitro__acousticconnectrn__HybridAcousticConnectRNSpec_(std__shared_ptr_margelo__nitro__acousticconnectrn__HybridAcousticConnectRNSpec_ cppType) {
    std::shared_ptr<margelo::nitro::acousticconnectrn::HybridAcousticConnectRNSpecSwift> swiftWrapper = std::dynamic_pointer_cast<margelo::nitro::acousticconnectrn::HybridAcousticConnectRNSpecSwift>(cppType);
  #ifdef NITRO_DEBUG
    if (swiftWrapper == nullptr) [[unlikely]] {
      throw std::runtime_error("Class \"HybridAcousticConnectRNSpec\" is not implemented in Swift!");
    }
  #endif
    AcousticConnectRN::HybridAcousticConnectRNSpec_cxx& swiftPart = swiftWrapper->getSwiftPart();
    return swiftPart.toUnsafe();
  }

} // namespace margelo::nitro::acousticconnectrn::bridge::swift
