File tree 1 file changed +4
-0
lines changed
Sources/_CJavaScriptBigIntSupport/include
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 8
8
///
9
9
/// @param value The value to convert.
10
10
/// @param is_signed Whether to treat the value as a signed integer or not.
11
+ #if __wasi__
11
12
__attribute__((__import_module__ ("javascript_kit" ),
12
13
__import_name__ ("swjs_i64_to_bigint" )))
14
+ #endif
13
15
extern JavaScriptObjectRef _i64_to_bigint (const long long value , bool is_signed );
14
16
15
17
/// Converts the provided BigInt to an Int64 or UInt64.
16
18
///
17
19
/// @param ref The target JavaScript object.
18
20
/// @param is_signed Whether to treat the return value as a signed integer or not.
21
+ #if __wasi__
19
22
__attribute__((__import_module__ ("javascript_kit" ),
20
23
__import_name__ ("swjs_bigint_to_i64" )))
24
+ #endif
21
25
extern long long _bigint_to_i64 (const JavaScriptObjectRef ref , bool is_signed );
22
26
23
27
#endif /* _CJavaScriptBigIntSupport_h */
You can’t perform that action at this time.
0 commit comments