@@ -19,7 +19,7 @@ public func _bjs_PlayBridgeJS_init() -> UnsafeMutableRawPointer {
1919
2020@ _expose ( wasm , " bjs_PlayBridgeJS_update " )
2121@ _cdecl ( " bjs_PlayBridgeJS_update " )
22- public func _bjs_PlayBridgeJS_update ( _self : UnsafeMutableRawPointer , swiftSourceBytes : Int32 , swiftSourceLength : Int32 , dtsSourceBytes : Int32 , dtsSourceLength : Int32 ) -> UnsafeMutableRawPointer {
22+ public func _bjs_PlayBridgeJS_update ( _ _self : UnsafeMutableRawPointer , _ swiftSourceBytes : Int32 , _ swiftSourceLength : Int32 , _ dtsSourceBytes : Int32 , _ dtsSourceLength : Int32 ) -> UnsafeMutableRawPointer {
2323 #if arch( wasm32 )
2424 do {
2525 let ret = try PlayBridgeJS . bridgeJSLiftParameter ( _self ) . update ( swiftSource : String . bridgeJSLiftParameter ( swiftSourceBytes , swiftSourceLength ) , dtsSource : String . bridgeJSLiftParameter ( dtsSourceBytes , dtsSourceLength ) )
@@ -44,8 +44,12 @@ public func _bjs_PlayBridgeJS_update(_self: UnsafeMutableRawPointer, swiftSource
4444
4545@ _expose ( wasm , " bjs_PlayBridgeJS_deinit " )
4646@ _cdecl ( " bjs_PlayBridgeJS_deinit " )
47- public func _bjs_PlayBridgeJS_deinit ( pointer : UnsafeMutableRawPointer ) {
47+ public func _bjs_PlayBridgeJS_deinit ( _ pointer : UnsafeMutableRawPointer ) -> Void {
48+ #if arch( wasm32 )
4849 Unmanaged < PlayBridgeJS > . fromOpaque ( pointer ) . release ( )
50+ #else
51+ fatalError ( " Only available on WebAssembly " )
52+ #endif
4953}
5054
5155extension PlayBridgeJS : ConvertibleToJSValue , _BridgedSwiftHeapObject {
@@ -56,16 +60,16 @@ extension PlayBridgeJS: ConvertibleToJSValue, _BridgedSwiftHeapObject {
5660
5761#if arch( wasm32 )
5862@ _extern ( wasm , module : " PlayBridgeJS " , name : " bjs_PlayBridgeJS_wrap " )
59- fileprivate func _bjs_PlayBridgeJS_wrap ( _ : UnsafeMutableRawPointer ) -> Int32
63+ fileprivate func _bjs_PlayBridgeJS_wrap ( _ pointer : UnsafeMutableRawPointer ) -> Int32
6064#else
61- fileprivate func _bjs_PlayBridgeJS_wrap ( _ : UnsafeMutableRawPointer ) -> Int32 {
65+ fileprivate func _bjs_PlayBridgeJS_wrap( _ pointer : UnsafeMutableRawPointer ) -> Int32 {
6266 fatalError ( " Only available on WebAssembly " )
6367}
6468#endif
6569
6670@ _expose ( wasm , " bjs_PlayBridgeJSOutput_outputJs " )
6771@ _cdecl ( " bjs_PlayBridgeJSOutput_outputJs " )
68- public func _bjs_PlayBridgeJSOutput_outputJs ( _self : UnsafeMutableRawPointer ) -> Void {
72+ public func _bjs_PlayBridgeJSOutput_outputJs ( _ _self : UnsafeMutableRawPointer ) -> Void {
6973 #if arch( wasm32 )
7074 let ret = PlayBridgeJSOutput . bridgeJSLiftParameter ( _self ) . outputJs ( )
7175 return ret . bridgeJSLowerReturn ( )
@@ -76,7 +80,7 @@ public func _bjs_PlayBridgeJSOutput_outputJs(_self: UnsafeMutableRawPointer) ->
7680
7781@ _expose ( wasm , " bjs_PlayBridgeJSOutput_outputDts " )
7882@ _cdecl ( " bjs_PlayBridgeJSOutput_outputDts " )
79- public func _bjs_PlayBridgeJSOutput_outputDts ( _self : UnsafeMutableRawPointer ) -> Void {
83+ public func _bjs_PlayBridgeJSOutput_outputDts ( _ _self : UnsafeMutableRawPointer ) -> Void {
8084 #if arch( wasm32 )
8185 let ret = PlayBridgeJSOutput . bridgeJSLiftParameter ( _self ) . outputDts ( )
8286 return ret . bridgeJSLowerReturn ( )
@@ -87,7 +91,7 @@ public func _bjs_PlayBridgeJSOutput_outputDts(_self: UnsafeMutableRawPointer) ->
8791
8892@ _expose ( wasm , " bjs_PlayBridgeJSOutput_importSwiftGlue " )
8993@ _cdecl ( " bjs_PlayBridgeJSOutput_importSwiftGlue " )
90- public func _bjs_PlayBridgeJSOutput_importSwiftGlue ( _self : UnsafeMutableRawPointer ) -> Void {
94+ public func _bjs_PlayBridgeJSOutput_importSwiftGlue ( _ _self : UnsafeMutableRawPointer ) -> Void {
9195 #if arch( wasm32 )
9296 let ret = PlayBridgeJSOutput . bridgeJSLiftParameter ( _self ) . importSwiftGlue ( )
9397 return ret . bridgeJSLowerReturn ( )
@@ -98,7 +102,7 @@ public func _bjs_PlayBridgeJSOutput_importSwiftGlue(_self: UnsafeMutableRawPoint
98102
99103@ _expose ( wasm , " bjs_PlayBridgeJSOutput_exportSwiftGlue " )
100104@ _cdecl ( " bjs_PlayBridgeJSOutput_exportSwiftGlue " )
101- public func _bjs_PlayBridgeJSOutput_exportSwiftGlue ( _self : UnsafeMutableRawPointer ) -> Void {
105+ public func _bjs_PlayBridgeJSOutput_exportSwiftGlue ( _ _self : UnsafeMutableRawPointer ) -> Void {
102106 #if arch( wasm32 )
103107 let ret = PlayBridgeJSOutput . bridgeJSLiftParameter ( _self ) . exportSwiftGlue ( )
104108 return ret . bridgeJSLowerReturn ( )
@@ -109,8 +113,12 @@ public func _bjs_PlayBridgeJSOutput_exportSwiftGlue(_self: UnsafeMutableRawPoint
109113
110114@ _expose ( wasm , " bjs_PlayBridgeJSOutput_deinit " )
111115@ _cdecl ( " bjs_PlayBridgeJSOutput_deinit " )
112- public func _bjs_PlayBridgeJSOutput_deinit ( pointer : UnsafeMutableRawPointer ) {
116+ public func _bjs_PlayBridgeJSOutput_deinit ( _ pointer : UnsafeMutableRawPointer ) -> Void {
117+ #if arch( wasm32 )
113118 Unmanaged < PlayBridgeJSOutput > . fromOpaque ( pointer ) . release ( )
119+ #else
120+ fatalError ( " Only available on WebAssembly " )
121+ #endif
114122}
115123
116124extension PlayBridgeJSOutput : ConvertibleToJSValue , _BridgedSwiftHeapObject {
@@ -121,9 +129,9 @@ extension PlayBridgeJSOutput: ConvertibleToJSValue, _BridgedSwiftHeapObject {
121129
122130#if arch( wasm32 )
123131@ _extern ( wasm , module : " PlayBridgeJS " , name : " bjs_PlayBridgeJSOutput_wrap " )
124- fileprivate func _bjs_PlayBridgeJSOutput_wrap ( _ : UnsafeMutableRawPointer ) -> Int32
132+ fileprivate func _bjs_PlayBridgeJSOutput_wrap ( _ pointer : UnsafeMutableRawPointer ) -> Int32
125133#else
126- fileprivate func _bjs_PlayBridgeJSOutput_wrap ( _ : UnsafeMutableRawPointer ) -> Int32 {
134+ fileprivate func _bjs_PlayBridgeJSOutput_wrap ( _ pointer : UnsafeMutableRawPointer ) -> Int32 {
127135 fatalError ( " Only available on WebAssembly " )
128136}
129137#endif
0 commit comments