Skip to content

Commit b0b0427

Browse files
committed
Auto-generated commit
1 parent 5e9ae1e commit b0b0427

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
<details>
2424

25+
- [`eb7f8ed`](https://github.com/stdlib-js/stdlib/commit/eb7f8ed40d9a514a673f5152484f62042dc24e67) - **docs:** add missing `stdint` includes [(#2728)](https://github.com/stdlib-js/stdlib/pull/2728) _(by Gunj Joshi, Athan Reines)_
2526
- [`46cda32`](https://github.com/stdlib-js/stdlib/commit/46cda325a622274755194c2dd6415d3d04ab5a5b) - **feat:** add `LL_D` in `math/base/napi/binary` [(#2726)](https://github.com/stdlib-js/stdlib/pull/2726) _(by Gunj Joshi, Athan Reines)_
2627

2728
</details>

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,8 @@ When used, this macro should be used **instead of** `NAPI_MODULE`. The macro inc
644644
Macro for registering a Node-API module exporting an interface for invoking a binary function accepting and returning signed 32-bit integers.
645645

646646
```c
647+
#include <stdint.h>
648+
647649
static int32_t add( const int32_t x, const int32_t y ) {
648650
return x + y;
649651
}
@@ -665,6 +667,8 @@ When used, this macro should be used **instead of** `NAPI_MODULE`. The macro inc
665667
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.
666668
667669
```c
670+
#include <stdint.h>
671+
668672
static double add( const int32_t x, const int32_t y ) {
669673
return x + y;
670674
}
@@ -974,7 +978,7 @@ static double fcn( const int64_t x, const int64_t y ) {
974978
// ...
975979
976980
// Register a Node-API module:
977-
STDLIB_MATH_BASE_NAPI_MODULE_II_D( fcn );
981+
STDLIB_MATH_BASE_NAPI_MODULE_LL_D( fcn );
978982
```
979983

980984
The macro expects the following arguments:

include/stdlib/math/base/napi/binary.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@
7070
* @param fcn binary function
7171
*
7272
* @example
73+
* #include <stdint.h>
74+
*
7375
* static int_32 add( const int_32 x, const int_32 y ) {
7476
* return x + y;
7577
* }
@@ -110,6 +112,8 @@
110112
* @param fcn binary function
111113
*
112114
* @example
115+
* #include <stdint.h>
116+
*
113117
* static double add( const int_32 x, const int_32 y ) {
114118
* return x + y;
115119
* }

0 commit comments

Comments
 (0)