-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
src: fix comments re PER_ISOLATE macros #12899
Conversation
src/env.h
Outdated
// | ||
// In each macro, `V` is expected to be the name of a C function which accepts | ||
// the number of arguments provided in each tuple in the macro body, typically | ||
// two. The named function will be invoked against each tuple. |
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.
V is (almost?) always another macro, not a C function. :) (You can change s/invoked/expanded
for that in the last sentence, if you don’t have a better word in mind.)
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.
I guess it could technically be anything which could syntactically be followed by a parameter list? I'll rephrase.
src/env.h
Outdated
@@ -64,6 +56,18 @@ namespace node { | |||
#define NODE_PUSH_VAL_TO_ARRAY_MAX 8 | |||
#endif | |||
|
|||
// PER_ISOLATE_* macros: we're going slightly crazy with macros here but the |
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.
I know it’s copy-pasted, but “crazy” isn’t really an appropriate word here… not sure how to phrase it better, but if nothing else comes to your mind, you can go with something like “dark magic”. ;)
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.
wild is my personal substitution.
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.
I took out that sentence entirely and it doesn't seem we lose anything, see what you think.
f68561a
to
f182b5b
Compare
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.
thank you a lot! :)
PR-URL: nodejs#12899 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James Snell <[email protected]>
f182b5b
to
dd6e3f6
Compare
Landed in dd6e3f6. Thanks! |
PR-URL: nodejs#12899 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James Snell <[email protected]>
Marking dont-land as it conflicts. Feel free to backport if you'd like to. |
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesUpdate and clarify the comments on the PER_ISOLATE macros in
env
and move to right before the macros they describe.