File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Sources/_CJavaScriptBigIntSupport/include Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 88///
99/// @param value The value to convert.
1010/// @param is_signed Whether to treat the value as a signed integer or not.
11+ #if __wasi__
1112__attribute__((__import_module__ ("javascript_kit" ),
1213 __import_name__ ("swjs_i64_to_bigint" )))
14+ #endif
1315extern JavaScriptObjectRef _i64_to_bigint (const long long value , bool is_signed );
1416
1517/// Converts the provided BigInt to an Int64 or UInt64.
1618///
1719/// @param ref The target JavaScript object.
1820/// @param is_signed Whether to treat the return value as a signed integer or not.
21+ #if __wasi__
1922__attribute__((__import_module__ ("javascript_kit" ),
2023 __import_name__ ("swjs_bigint_to_i64" )))
24+ #endif
2125extern long long _bigint_to_i64 (const JavaScriptObjectRef ref , bool is_signed );
2226
2327#endif /* _CJavaScriptBigIntSupport_h */
You can’t perform that action at this time.
0 commit comments