@@ -2,22 +2,22 @@ mergeInto(LibraryManager.library, {
2
2
test_dyncalls_vijdf : function ( funcPtr ) {
3
3
// 1. Directly access a function pointer via a static signature (32-bit ABI)
4
4
// (this is the fastest way to call a function pointer when the signature is statically known in WASM_BIGINT==0 builds)
5
- dynCall_vijdf ( funcPtr , 1 , /*lo=*/ 2 , /*hi=*/ 3 , 4 , 5 ) ; // Available only in WASM_BIGINT != 2 builds
5
+ dynCall_vijdf ( funcPtr , 1 , /*lo=*/ 2 , /*hi=*/ 3 , 4 , 5 ) ; // Available only in DYNCALLS==1 builds
6
6
7
7
// 2. Access a function pointer using the convenience/legacy 'dynCall' function (32-bit ABI)
8
8
// (this form should never be used, it is suboptimal for performance, but provided for legacy compatibility)
9
- dynCall ( 'vijdf' , funcPtr , [ 2 , /*lo=*/ 3 , /*hi=*/ 4 , 5 , 6 ] ) ; // Available only in WASM_BIGINT != 2 builds
9
+ dynCall ( 'vijdf' , funcPtr , [ 2 , /*lo=*/ 3 , /*hi=*/ 4 , 5 , 6 ] ) ; // Available only in DYNCALLS==1 builds
10
10
} ,
11
11
12
12
test_dyncalls_iii : function ( funcPtr ) {
13
13
// 1. Directly access a function pointer via a static signature (32-bit ABI)
14
14
// (this is the fastest way to call a function pointer when the signature is statically known in WASM_BIGINT==0 builds)
15
- var ret = dynCall_iii ( funcPtr , 1 , 2 ) ; // Available only in WASM_BIGINT != 2 builds
15
+ var ret = dynCall_iii ( funcPtr , 1 , 2 ) ; // Available only in DYNCALLS==1 builds
16
16
console . log ( 'iii returned ' + ret ) ;
17
17
18
18
// 2. Access a function pointer using the convenience/legacy 'dynCall' function (32-bit ABI)
19
19
// (this form should never be used, it is suboptimal for performance, but provided for legacy compatibility)
20
- var ret = dynCall ( 'iii' , funcPtr , [ 2 , 3 ] ) ; // Available only in WASM_BIGINT != 2 builds
20
+ var ret = dynCall ( 'iii' , funcPtr , [ 2 , 3 ] ) ; // Available only in DYNCALLS==1 builds
21
21
console . log ( 'iii returned ' + ret ) ;
22
22
23
23
// 3. Access a dynCall using the makeDynCall macro:
0 commit comments