mirror of
https://github.com/nodejs/node.git
synced 2026-11-29 14:27:57 -05:00
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>
This commit is contained in:
2 files changed
+3
-10
No files matched your search
@@ -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();
|
||||
}
|
||||
|
||||
+3
-2
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user