src: move Node-API version detection to where it is used · nodejs/node@baef046 · GitHub
Skip to content

Commit baef046

Browse files
addaleaxtargos
authored andcommitted
src: move Node-API version detection to where it is used
`src/js_native_api_types.h` and other files actually depend on the moved macros being evaluated, so before this change there was an implicit requirement that `src/js_native_api.h` would be included separately before any include of `src/js_native_api_types.h`, direct or transitive. PR-URL: #60512 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 92c484e commit baef046

2 files changed

Lines changed: 16 additions & 16 deletions

File tree

src/js_native_api.h

Lines changed: 0 additions & 16 deletions

src/js_native_api_types.h

Lines changed: 16 additions & 0 deletions

0 commit comments

Comments
 (0)