We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6557468 commit fbf3499Copy full SHA for fbf3499
lib/node_modules/@stdlib/math/base/special/signum/src/addon.c
@@ -19,10 +19,10 @@
19
#include "stdlib/math/base/special/signum.h"
20
#include "stdlib/math/base/napi/unary.h"
21
22
-// Define a wrapper function to avoid shadowing
23
-static double stdlib_base_signum_wrapper( const double x ) {
+// Define the callback function for the NAPI module
+static double stdlib_base_signum_callback( const double x ) {
24
return stdlib_base_signum( x );
25
}
26
27
-// Use the wrapper function in the macro to prevent shadowing issues
28
-STDLIB_MATH_BASE_NAPI_MODULE_D_D( stdlib_base_signum_wrapper )
+// Register the NAPI module, using a distinct symbol
+STDLIB_MATH_BASE_NAPI_MODULE_D_D( stdlib_base_signum_callback )
0 commit comments