@@ -839,6 +839,130 @@ fileprivate func _bjs_StringRoundtrip_wrap(_ pointer: UnsafeMutableRawPointer) -
839839}
840840#endif
841841
842+ @_expose ( wasm, " bjs_OptionalReturnRoundtrip_init " )
843+ @_cdecl ( " bjs_OptionalReturnRoundtrip_init " )
844+ public func _bjs_OptionalReturnRoundtrip_init( ) -> UnsafeMutableRawPointer {
845+ #if arch(wasm32)
846+ let ret = OptionalReturnRoundtrip ( )
847+ return ret. bridgeJSLowerReturn ( )
848+ #else
849+ fatalError ( " Only available on WebAssembly " )
850+ #endif
851+ }
852+
853+ @_expose ( wasm, " bjs_OptionalReturnRoundtrip_makeIntSome " )
854+ @_cdecl ( " bjs_OptionalReturnRoundtrip_makeIntSome " )
855+ public func _bjs_OptionalReturnRoundtrip_makeIntSome( _ _self: UnsafeMutableRawPointer ) -> Void {
856+ #if arch(wasm32)
857+ let ret = OptionalReturnRoundtrip . bridgeJSLiftParameter ( _self) . makeIntSome ( )
858+ return ret. bridgeJSLowerReturn ( )
859+ #else
860+ fatalError ( " Only available on WebAssembly " )
861+ #endif
862+ }
863+
864+ @_expose ( wasm, " bjs_OptionalReturnRoundtrip_makeIntNone " )
865+ @_cdecl ( " bjs_OptionalReturnRoundtrip_makeIntNone " )
866+ public func _bjs_OptionalReturnRoundtrip_makeIntNone( _ _self: UnsafeMutableRawPointer ) -> Void {
867+ #if arch(wasm32)
868+ let ret = OptionalReturnRoundtrip . bridgeJSLiftParameter ( _self) . makeIntNone ( )
869+ return ret. bridgeJSLowerReturn ( )
870+ #else
871+ fatalError ( " Only available on WebAssembly " )
872+ #endif
873+ }
874+
875+ @_expose ( wasm, " bjs_OptionalReturnRoundtrip_makeBoolSome " )
876+ @_cdecl ( " bjs_OptionalReturnRoundtrip_makeBoolSome " )
877+ public func _bjs_OptionalReturnRoundtrip_makeBoolSome( _ _self: UnsafeMutableRawPointer ) -> Void {
878+ #if arch(wasm32)
879+ let ret = OptionalReturnRoundtrip . bridgeJSLiftParameter ( _self) . makeBoolSome ( )
880+ return ret. bridgeJSLowerReturn ( )
881+ #else
882+ fatalError ( " Only available on WebAssembly " )
883+ #endif
884+ }
885+
886+ @_expose ( wasm, " bjs_OptionalReturnRoundtrip_makeBoolNone " )
887+ @_cdecl ( " bjs_OptionalReturnRoundtrip_makeBoolNone " )
888+ public func _bjs_OptionalReturnRoundtrip_makeBoolNone( _ _self: UnsafeMutableRawPointer ) -> Void {
889+ #if arch(wasm32)
890+ let ret = OptionalReturnRoundtrip . bridgeJSLiftParameter ( _self) . makeBoolNone ( )
891+ return ret. bridgeJSLowerReturn ( )
892+ #else
893+ fatalError ( " Only available on WebAssembly " )
894+ #endif
895+ }
896+
897+ @_expose ( wasm, " bjs_OptionalReturnRoundtrip_makeDoubleSome " )
898+ @_cdecl ( " bjs_OptionalReturnRoundtrip_makeDoubleSome " )
899+ public func _bjs_OptionalReturnRoundtrip_makeDoubleSome( _ _self: UnsafeMutableRawPointer ) -> Void {
900+ #if arch(wasm32)
901+ let ret = OptionalReturnRoundtrip . bridgeJSLiftParameter ( _self) . makeDoubleSome ( )
902+ return ret. bridgeJSLowerReturn ( )
903+ #else
904+ fatalError ( " Only available on WebAssembly " )
905+ #endif
906+ }
907+
908+ @_expose ( wasm, " bjs_OptionalReturnRoundtrip_makeDoubleNone " )
909+ @_cdecl ( " bjs_OptionalReturnRoundtrip_makeDoubleNone " )
910+ public func _bjs_OptionalReturnRoundtrip_makeDoubleNone( _ _self: UnsafeMutableRawPointer ) -> Void {
911+ #if arch(wasm32)
912+ let ret = OptionalReturnRoundtrip . bridgeJSLiftParameter ( _self) . makeDoubleNone ( )
913+ return ret. bridgeJSLowerReturn ( )
914+ #else
915+ fatalError ( " Only available on WebAssembly " )
916+ #endif
917+ }
918+
919+ @_expose ( wasm, " bjs_OptionalReturnRoundtrip_makeStringSome " )
920+ @_cdecl ( " bjs_OptionalReturnRoundtrip_makeStringSome " )
921+ public func _bjs_OptionalReturnRoundtrip_makeStringSome( _ _self: UnsafeMutableRawPointer ) -> Void {
922+ #if arch(wasm32)
923+ let ret = OptionalReturnRoundtrip . bridgeJSLiftParameter ( _self) . makeStringSome ( )
924+ return ret. bridgeJSLowerReturn ( )
925+ #else
926+ fatalError ( " Only available on WebAssembly " )
927+ #endif
928+ }
929+
930+ @_expose ( wasm, " bjs_OptionalReturnRoundtrip_makeStringNone " )
931+ @_cdecl ( " bjs_OptionalReturnRoundtrip_makeStringNone " )
932+ public func _bjs_OptionalReturnRoundtrip_makeStringNone( _ _self: UnsafeMutableRawPointer ) -> Void {
933+ #if arch(wasm32)
934+ let ret = OptionalReturnRoundtrip . bridgeJSLiftParameter ( _self) . makeStringNone ( )
935+ return ret. bridgeJSLowerReturn ( )
936+ #else
937+ fatalError ( " Only available on WebAssembly " )
938+ #endif
939+ }
940+
941+ @_expose ( wasm, " bjs_OptionalReturnRoundtrip_deinit " )
942+ @_cdecl ( " bjs_OptionalReturnRoundtrip_deinit " )
943+ public func _bjs_OptionalReturnRoundtrip_deinit( _ pointer: UnsafeMutableRawPointer ) -> Void {
944+ #if arch(wasm32)
945+ Unmanaged < OptionalReturnRoundtrip > . fromOpaque ( pointer) . release ( )
946+ #else
947+ fatalError ( " Only available on WebAssembly " )
948+ #endif
949+ }
950+
951+ extension OptionalReturnRoundtrip : ConvertibleToJSValue , _BridgedSwiftHeapObject {
952+ var jsValue : JSValue {
953+ return . object( JSObject ( id: UInt32 ( bitPattern: _bjs_OptionalReturnRoundtrip_wrap ( Unmanaged . passRetained ( self ) . toOpaque ( ) ) ) ) )
954+ }
955+ }
956+
957+ #if arch(wasm32)
958+ @_extern ( wasm, module: " Benchmarks " , name: " bjs_OptionalReturnRoundtrip_wrap " )
959+ fileprivate func _bjs_OptionalReturnRoundtrip_wrap( _ pointer: UnsafeMutableRawPointer ) -> Int32
960+ #else
961+ fileprivate func _bjs_OptionalReturnRoundtrip_wrap( _ pointer: UnsafeMutableRawPointer ) -> Int32 {
962+ fatalError ( " Only available on WebAssembly " )
963+ }
964+ #endif
965+
842966@_expose ( wasm, " bjs_StructRoundtrip_init " )
843967@_cdecl ( " bjs_StructRoundtrip_init " )
844968public func _bjs_StructRoundtrip_init( ) -> UnsafeMutableRawPointer {
0 commit comments