@@ -8,27 +8,27 @@ void _call_host_function_impl(const JavaScriptHostFuncRef host_func_ref,
8
8
const JavaScriptObjectRef callback_func );
9
9
10
10
__attribute__((export_name ("swjs_call_host_function" )))
11
- void _call_host_function (const JavaScriptHostFuncRef host_func_ref ,
12
- const RawJSValue * argv , const int argc ,
13
- const JavaScriptObjectRef callback_func ) {
11
+ void swjs_call_host_function (const JavaScriptHostFuncRef host_func_ref ,
12
+ const RawJSValue * argv , const int argc ,
13
+ const JavaScriptObjectRef callback_func ) {
14
14
_call_host_function_impl (host_func_ref , argv , argc , callback_func );
15
15
}
16
16
17
17
__attribute__((export_name ("swjs_prepare_host_function_call" )))
18
- void * _prepare_host_function_call (const int argc ) {
18
+ void * swjs_prepare_host_function_call (const int argc ) {
19
19
return malloc (argc * sizeof (RawJSValue ));
20
20
}
21
21
22
22
__attribute__((export_name ("swjs_cleanup_host_function_call" )))
23
- void _cleanup_host_function_call (void * argv_buffer ) {
23
+ void swjs_cleanup_host_function_call (void * argv_buffer ) {
24
24
free (argv_buffer );
25
25
}
26
26
27
27
/// The compatibility runtime library version.
28
28
/// Notes: If you change any interface of runtime library, please increment
29
29
/// this and `SwiftRuntime.version` in `./Runtime/src/index.ts`.
30
30
__attribute__((export_name ("swjs_library_version" )))
31
- int _library_version () {
31
+ int swjs_library_version () {
32
32
return 701 ;
33
33
}
34
34
0 commit comments