Skip to content

Commit 9cbd392

Browse files
authored
Update addon.c
Signed-off-by: JaySoni1 <[email protected]>
1 parent fbf3499 commit 9cbd392

File tree

1 file changed

+4
-4
lines changed
  • lib/node_modules/@stdlib/math/base/special/signum/src

1 file changed

+4
-4
lines changed

lib/node_modules/@stdlib/math/base/special/signum/src/addon.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
#include "stdlib/math/base/special/signum.h"
2020
#include "stdlib/math/base/napi/unary.h"
2121

22-
// Define the callback function for the NAPI module
23-
static double stdlib_base_signum_callback( const double x ) {
22+
// Wrapper function: avoid naming conflict
23+
static double stdlib_base_signum_cb( const double x ) {
2424
return stdlib_base_signum( x );
2525
}
2626

27-
// Register the NAPI module, using a distinct symbol
28-
STDLIB_MATH_BASE_NAPI_MODULE_D_D( stdlib_base_signum_callback )
27+
// Register the module using a distinct symbol (different from the function name)
28+
STDLIB_MATH_BASE_NAPI_MODULE_D_D( signum_module, stdlib_base_signum_cb )

0 commit comments

Comments
 (0)