-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: add reference to node_api.h in docs #13084
Conversation
Realized that we don't actually point people to the file to include in order to access N-API functions. Add that.
doc/api/n-api.md
Outdated
@@ -52,6 +52,13 @@ for the N-API C based functions exported by Node.js. These wrappers are not | |||
part of N-API, nor will they be maintained as part of Node.js. One such | |||
example is: [node-api](https://github.com/nodejs/node-api). | |||
|
|||
In order to use the N-API functions, include the file "node_api.h" which | |||
is located in the src directory in the node development tree. For example: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe worth including a link to the file in Github:
https://github.com/nodejs/node/blob/master/src/node_api.h
Pushed change to address comments |
For example: | ||
```C | ||
#include <node_api.h> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra newline (can be fixed as part of landing).
CI good landing. Fixed nit and landed as 4a7b7e8 |
Realized that we don't actually point people to the file to include in order to access N-API functions. Add that. PR-URL: #13084 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
Realized that we don't actually point people to the file to include in order to access N-API functions. Add that. PR-URL: nodejs#13084 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
Realized that we don't actually point people to the file to include in order to access N-API functions. Add that. Backport-PR-URL: #19447 PR-URL: #13084 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
Realized that we don't actually point people to the file to
include in order to access N-API functions. Add that.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
doc, n-api