Skip to content

Commit f98bb11

Browse files
committed
Make @_cdecl functions internal
1 parent 0d2c983 commit f98bb11

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/JavaScriptKit/FundamentalObjects/JSFunction.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,18 +105,18 @@ public class JSClosure: JSFunction {
105105
}
106106

107107
@_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 {
109109
let argumentSize = MemoryLayout<RawJSValue>.size * Int(argc)
110110
return malloc(Int(argumentSize))!
111111
}
112112

113113
@_cdecl("swjs_cleanup_host_function_call")
114-
public func _cleanup_host_function_call(_ pointer: UnsafeMutableRawPointer) {
114+
func _cleanup_host_function_call(_ pointer: UnsafeMutableRawPointer) {
115115
free(pointer)
116116
}
117117

118118
@_cdecl("swjs_call_host_function")
119-
public func _call_host_function(
119+
func _call_host_function(
120120
_ hostFuncRef: JavaScriptHostFuncRef,
121121
_ argv: UnsafePointer<RawJSValue>, _ argc: Int32,
122122
_ callbackFuncRef: JavaScriptObjectRef

0 commit comments

Comments
 (0)