Skip to content
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

Closed
wants to merge 2 commits into from
Closed

doc: add reference to node_api.h in docs #13084

wants to merge 2 commits into from

Conversation

mhdawson
Copy link
Member

@mhdawson mhdawson commented May 17, 2017

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), or vcbuild test (Windows) passes
  • documentation is changed or added
  • commit message follows [commit guidelines].
Affected core subsystem(s)

doc, n-api

Realized that we don't actually point people to the file to
include in order to access N-API functions.  Add that.
@nodejs-github-bot nodejs-github-bot added doc Issues and PRs related to the documentations. node-api Issues and PRs related to the Node-API. labels May 17, 2017
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:
Copy link
Member

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

@mhdawson
Copy link
Member Author

Pushed change to address comments

For example:
```C
#include <node_api.h>

Copy link
Member

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).

@mhdawson
Copy link
Member Author

@mhdawson
Copy link
Member Author

CI good landing. Fixed nit and landed as 4a7b7e8

@mhdawson mhdawson closed this May 19, 2017
mhdawson added a commit that referenced this pull request May 19, 2017
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]>
@gibfahn gibfahn deleted the napi-doc2 branch May 20, 2017 00:07
@jasnell jasnell mentioned this pull request May 28, 2017
@gibfahn gibfahn mentioned this pull request Jun 15, 2017
3 tasks
gabrielschulhof pushed a commit to gabrielschulhof/node that referenced this pull request Apr 10, 2018
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]>
MylesBorins pushed a commit that referenced this pull request Apr 16, 2018
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]>
@MylesBorins MylesBorins mentioned this pull request Apr 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc Issues and PRs related to the documentations. node-api Issues and PRs related to the Node-API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants