GeezerVison is showing github.com — src: add include for standalone compile · nodejs/node@b9bd4e9
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: src/js_native_api_v8.cc +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | #include <limits.h> // INT_MAX |
2 | 2 | #include <cmath> |
| 3 | +#include <algorithm> |
3 | 4 | #define NAPI_EXPERIMENTAL |
4 | 5 | #include "js_native_api_v8.h" |
5 | 6 | #include "js_native_api.h" |
|
Collapse file
Copy file name to clipboardExpand all lines: src/js_native_api_v8_internals.h +5-2Lines changed: 5 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
4 | 4 | // The V8 implementation of N-API, including `js_native_api_v8.h` uses certain |
5 | 5 | // idioms which require definition here. For example, it uses a variant of |
6 | 6 | // persistent references which need not be reset in the constructor. It is the |
7 | | -// responsibility of this file to define these idioms. |
| 7 | +// responsibility of this file to define these idioms. Optionally, this file |
| 8 | +// may also define `NAPI_VERSION` and set it to the version of N-API to be |
| 9 | +// exposed. |
8 | 10 |
|
9 | 11 | // In the case of the Node.js implementation of N-API some of the idioms are |
10 | 12 | // imported directly from Node.js by including `node_internals.h` below. Others |
11 | | -// are bridged to remove references to the `node` namespace. |
| 13 | +// are bridged to remove references to the `node` namespace. `node_version.h`, |
| 14 | +// included below, defines `NAPI_VERSION`. |
12 | 15 |
|
13 | 16 | #include "node_version.h" |
14 | 17 | #include "env.h" |
|