summaryrefslogtreecommitdiff
path: root/src/node_internals.h
diff options
context:
space:
mode:
authorSam Roberts <vieuxtech@gmail.com>2019-05-22 12:12:36 -0700
committerAnna Henningsen <anna@addaleax.net>2019-05-26 17:09:45 +0200
commit02f9a0fe27a70062631a39971099e13f54d2b588 (patch)
tree17561268145e62e01e8cdb0f8a4c5d4f9b204af9 /src/node_internals.h
parent91ec5bf7ba78039b6ab856c87aa39e3b7ef77c7e (diff)
downloadandroid-node-v8-02f9a0fe27a70062631a39971099e13f54d2b588.tar.gz
android-node-v8-02f9a0fe27a70062631a39971099e13f54d2b588.tar.bz2
android-node-v8-02f9a0fe27a70062631a39971099e13f54d2b588.zip
src: move DiagnosticFilename inlines into a -inl.h
DiagnosticFilename's constructor default values use inlines from env-inl.h, causing the many users of node_internals.h to include env-inl.h, even if they never use DiagnosticFilename. PR-URL: https://github.com/nodejs/node/pull/27839 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'src/node_internals.h')
-rw-r--r--src/node_internals.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/node_internals.h b/src/node_internals.h
index f74e67ce6f..4091c3f0d3 100644
--- a/src/node_internals.h
+++ b/src/node_internals.h
@@ -321,17 +321,15 @@ class DiagnosticFilename {
public:
static void LocalTime(TIME_TYPE* tm_struct);
- DiagnosticFilename(Environment* env,
- const char* prefix,
- const char* ext) :
- filename_(MakeFilename(env->thread_id(), prefix, ext)) {}
+ inline DiagnosticFilename(Environment* env,
+ const char* prefix,
+ const char* ext);
- DiagnosticFilename(uint64_t thread_id,
- const char* prefix,
- const char* ext) :
- filename_(MakeFilename(thread_id, prefix, ext)) {}
+ inline DiagnosticFilename(uint64_t thread_id,
+ const char* prefix,
+ const char* ext);
- const char* operator*() const { return filename_.c_str(); }
+ inline const char* operator*() const;
private:
static std::string MakeFilename(