We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
-Xcc -D__EMBEDDED_SWIFT__
1 parent b7ef9d2 commit bb99be7Copy full SHA for bb99be7
Sources/_CJavaScriptKit/_CJavaScriptKit.c
@@ -33,10 +33,7 @@ void swjs_cleanup_host_function_call(void *argv_buffer) {
33
free(argv_buffer);
34
}
35
36
-// NOTE: This __wasi__ check is a hack for Embedded compatibility (assuming that if __wasi__ is defined, we are not building for Embedded)
37
-// cdecls don't work in Embedded, but @_expose(wasm) can be used with Swift >=6.0
38
-// the previously used `#if __Embedded` did not play well with SwiftPM (defines needed to be on every target up the chain)
39
-# ifdef __wasi__
+# if defined(__wasi__) && !defined(__EMBEDDED_SWIFT__)
40
bool _call_host_function_impl(const JavaScriptHostFuncRef host_func_ref,
41
const RawJSValue *argv, const int argc,
42
const JavaScriptObjectRef callback_func);
0 commit comments