Skip to content

Commit 3d67e05

Browse files
Update exported func name to match exported name (#123)
1 parent 21a4d66 commit 3d67e05

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Sources/_CJavaScriptKit/_CJavaScriptKit.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,27 @@ void _call_host_function_impl(const JavaScriptHostFuncRef host_func_ref,
88
const JavaScriptObjectRef callback_func);
99

1010
__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) {
1414
_call_host_function_impl(host_func_ref, argv, argc, callback_func);
1515
}
1616

1717
__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) {
1919
return malloc(argc * sizeof(RawJSValue));
2020
}
2121

2222
__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) {
2424
free(argv_buffer);
2525
}
2626

2727
/// The compatibility runtime library version.
2828
/// Notes: If you change any interface of runtime library, please increment
2929
/// this and `SwiftRuntime.version` in `./Runtime/src/index.ts`.
3030
__attribute__((export_name("swjs_library_version")))
31-
int _library_version() {
31+
int swjs_library_version() {
3232
return 701;
3333
}
3434

0 commit comments

Comments
 (0)