mirror of
https://github.com/nodejs/node.git
synced 2026-12-06 10:48:45 -05:00
src: refactor #include handling
`node_internals.h` already includes the most common headers, so double includes can be avoided in a lot of cases. Also don’t include `node_internals.h` from `node.h` implicitly anymore, as that is mostly unnecessary. PR-URL: https://github.com/nodejs/node/pull/14697 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
7fa175f6d3
commit
774e42b575
30 files changed
+25
-73
No files matched your search
@@ -14,10 +14,8 @@
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#include <vector>
|
||||
#include "uv.h"
|
||||
#include "node_api.h"
|
||||
#include "node_internals.h"
|
||||
#include "util.h"
|
||||
|
||||
#define NAPI_VERSION 1
|
||||
|
||||
|
||||
Reference in new issue
Block a user