Uh oh!
There was an error while loading. Please reload this page.
src: add include guards to internal headers - #6948
Conversation
trevnorris
commented
May 24, 2016
LGTM. Should this be documented in our addons docs? |
bnoordhuis
commented
May 24, 2016
What in particular does 'this' refer to? |
trevnorris
commented
May 24, 2016
@bnoordhuis In all of |
bnoordhuis
commented
May 24, 2016
I only added it to the binding.gyp files from add-ons that As to documenting |
trevnorris
commented
May 24, 2016
Heh, fair enough. |
Fishrock123
commented
May 24, 2016
Isn't this kind of breaking? |
bnoordhuis
commented
May 24, 2016
Only on smartos, apparently. Jest aside, all of these files are internal - people are not supposed to be using them and if they do, they should expect things to break at any time. The installer doesn't install them. New CI: https://ci.nodejs.org/job/node-test-pull-request/2764/ |
Can you tell me why this compiles fine (tested on v4 and v6)? #include<v8.h>
#include<async-wrap.h>
#include<node.h>namespacebmod {
using v8::FunctionCallbackInfo;
using v8::Value;
using v8::Local;
using v8::Object;
voidRun(const FunctionCallbackInfo<Value>& args) {
fprintf(stderr, "NODE_ASYNC_ID_OFFSET: %i\n", NODE_ASYNC_ID_OFFSET);
}
voidInit(Local<Object> exports) {
NODE_SET_METHOD(exports, "run", Run);
}
} // namespace bmodNODE_MODULE(addon, bmod::Init) |
When I say installer, I mean If you use node-gyp though, that downloads and builds against the source tarball, and that does include internal headers. |
jasnell
commented
May 24, 2016
LGTM if CI is green |
indutny
commented
May 24, 2016
LGTM |
For consistency with the newly added src/base64.h header, check that NODE_WANT_INTERNALS is defined and set in internal headers. PR-URL: nodejs#6948 Refs: nodejs#6910 Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trevor Norris <trev.norris@gmail.com>
c79a00d to
eff96d3CompareFor consistency with the newly added src/base64.h header, check that NODE_WANT_INTERNALS is defined and set in internal headers. PR-URL: nodejs#6948 Refs: nodejs#6910 Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trevor Norris <trev.norris@gmail.com>
For consistency with the newly added src/base64.h header, check that NODE_WANT_INTERNALS is defined and set in internal headers. PR-URL: #6948 Refs: #6910 Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trevor Norris <trev.norris@gmail.com>
@bnoordhuis lts? |
bnoordhuis
commented
Jul 11, 2016
Let's not. |
For consistency with the newly added src/base64.h header, check that
NODE_WANT_INTERNALS is defined and set in internal headers.
Refs: #6910
CI: https://ci.nodejs.org/job/node-test-pull-request/2758/
R=@indutny@trevnorris