diff options
author | Shelley Vohr <shelley.vohr@gmail.com> | 2019-11-15 19:49:07 +0300 |
---|---|---|
committer | Shelley Vohr <shelley.vohr@gmail.com> | 2019-12-14 17:45:02 +0300 |
commit | ccdd6ef649edfc34d9e769a740440b779bbefe68 (patch) | |
tree | b373f28bfeed4ba2532e4e8adcdb3e28631f7d35 /src/node_options.h | |
parent | 2e738fb6b53903d11d2557acfe4b17c7c60c3a6b (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/node_options.h')
-rw-r--r-- | src/node_options.h | 5 |
1 files changed, 3 insertions, 2 deletions
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: |