File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Sources/JavaScriptKit/FundamentalObjects Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -105,18 +105,18 @@ public class JSClosure: JSFunction {
105
105
}
106
106
107
107
@_cdecl ( " swjs_prepare_host_function_call " )
108
- public func _prepare_host_function_call( _ argc: Int32 ) -> UnsafeMutableRawPointer {
108
+ func _prepare_host_function_call( _ argc: Int32 ) -> UnsafeMutableRawPointer {
109
109
let argumentSize = MemoryLayout< RawJSValue> . size * Int( argc)
110
110
return malloc ( Int ( argumentSize) ) !
111
111
}
112
112
113
113
@_cdecl ( " swjs_cleanup_host_function_call " )
114
- public func _cleanup_host_function_call( _ pointer: UnsafeMutableRawPointer ) {
114
+ func _cleanup_host_function_call( _ pointer: UnsafeMutableRawPointer ) {
115
115
free ( pointer)
116
116
}
117
117
118
118
@_cdecl ( " swjs_call_host_function " )
119
- public func _call_host_function(
119
+ func _call_host_function(
120
120
_ hostFuncRef: JavaScriptHostFuncRef ,
121
121
_ argv: UnsafePointer < RawJSValue > , _ argc: Int32 ,
122
122
_ callbackFuncRef: JavaScriptObjectRef
You can’t perform that action at this time.
0 commit comments