MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / defineI64Param

Function defineI64Param

src/parseTools.mjs:1000–1005  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

998// JS API I64 param handling: if we have BigInt support, the ABI is simple,
999// it is a BigInt. Otherwise, we legalize into pairs of i32s.
1000export function defineI64Param(name) {
1001 if (WASM_BIGINT) {
1002 return name;
1003 }
1004 return `${name}_low, ${name}_high`;
1005}
1006
1007export function receiveI64ParamAsI53(name, onError, handleErrors = true) {
1008 var errorHandler = handleErrors ? `if (isNaN(${name})) { return ${onError}; }` : '';

Callers 1

handleI64SignaturesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected