diff --git a/lib/node_modules/@stdlib/math/base/napi/binary/README.md b/lib/node_modules/@stdlib/math/base/napi/binary/README.md index 54c2a24b26f..884541964c0 100644 --- a/lib/node_modules/@stdlib/math/base/napi/binary/README.md +++ b/lib/node_modules/@stdlib/math/base/napi/binary/README.md @@ -621,6 +621,8 @@ When used, this macro should be used **instead of** `NAPI_MODULE`. The macro inc Macro for registering a Node-API module exporting an interface for invoking a binary function accepting and returning signed 32-bit integers. ```c +#include + static int32_t add( const int32_t x, const int32_t y ) { return x + y; } @@ -642,6 +644,8 @@ When used, this macro should be used **instead of** `NAPI_MODULE`. The macro inc Macro for registering a Node-API module exporting an interface for invoking a binary function accepting signed 32-bit integers and returning a double-precision floating-point number. ```c +#include + static double add( const int32_t x, const int32_t y ) { return x + y; } @@ -951,7 +955,7 @@ static double fcn( const int64_t x, const int64_t y ) { // ... // Register a Node-API module: -STDLIB_MATH_BASE_NAPI_MODULE_II_D( fcn ); +STDLIB_MATH_BASE_NAPI_MODULE_LL_D( fcn ); ``` The macro expects the following arguments: diff --git a/lib/node_modules/@stdlib/math/base/napi/binary/include/stdlib/math/base/napi/binary.h b/lib/node_modules/@stdlib/math/base/napi/binary/include/stdlib/math/base/napi/binary.h index 15a4e281776..2d59c39c3d6 100644 --- a/lib/node_modules/@stdlib/math/base/napi/binary/include/stdlib/math/base/napi/binary.h +++ b/lib/node_modules/@stdlib/math/base/napi/binary/include/stdlib/math/base/napi/binary.h @@ -70,6 +70,8 @@ * @param fcn binary function * * @example +* #include +* * static int_32 add( const int_32 x, const int_32 y ) { * return x + y; * } @@ -110,6 +112,8 @@ * @param fcn binary function * * @example +* #include +* * static double add( const int_32 x, const int_32 y ) { * return x + y; * }