Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShelley Vohr <shelley.vohr@gmail.com>2019-11-15 19:49:07 +0300
committerMyles Borins <mylesborins@google.com>2019-12-18 02:17:21 +0300
commitc43461ac5645d23f589f84e5cbd0dee55874a532 (patch)
tree1e6e167a888a864fcb52990b9432f2c20817e2c4 /src
parent30e2d28ac51b1e238b6ac6f45ba027a8528b1a53 (diff)
src: make debug_options getters public
This simplifies requires for those using DebugOptions, since debug_options was defined in src/node_options-inl.h and thus embedders would need to require an extra file to do what could trivially be consolidated into one. PR-URL: https://github.com/nodejs/node/pull/30494 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: David Carlier <devnexen@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/node_options-inl.h8
-rw-r--r--src/node_options.h5
2 files changed, 3 insertions, 10 deletions
diff --git a/src/node_options-inl.h b/src/node_options-inl.h
index 8fc2feff4dc..8bb5b6155a2 100644
--- a/src/node_options-inl.h
+++ b/src/node_options-inl.h
@@ -13,14 +13,6 @@ PerIsolateOptions* PerProcessOptions::get_per_isolate_options() {
return per_isolate.get();
}
-DebugOptions* EnvironmentOptions::get_debug_options() {
- return &debug_options_;
-}
-
-const DebugOptions& EnvironmentOptions::debug_options() const {
- return debug_options_;
-}
-
EnvironmentOptions* PerIsolateOptions::get_per_env_options() {
return per_env.get();
}
diff --git a/src/node_options.h b/src/node_options.h
index 7b3ae19fe6c..c3ef78fd5bc 100644
--- a/src/node_options.h
+++ b/src/node_options.h
@@ -172,8 +172,9 @@ class EnvironmentOptions : public Options {
std::vector<std::string> user_argv;
- inline DebugOptions* get_debug_options();
- inline const DebugOptions& debug_options() const;
+ inline DebugOptions* get_debug_options() { return &debug_options_; }
+ inline const DebugOptions& debug_options() const { return debug_options_; }
+
void CheckOptions(std::vector<std::string>* errors) override;
private: