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
diff options
context:
space:
mode:
authorJoyee Cheung <joyeec9h3@gmail.com>2020-02-20 12:22:48 +0300
committerJoyee Cheung <joyeec9h3@gmail.com>2020-03-10 00:52:38 +0300
commit51bc55f2a2424d6eb805dace43604906ed9946a8 (patch)
tree1e704a8afdf533d05332ed82c013839e59828cef /src/debug_utils.cc
parenta8772da54dd8ccc658cf56992b2ba46a021f6e83 (diff)
src: implement per-process native Debug() printer
This patch adds a per-process native Debug() printer that can be called when an Environment is not available. PR-URL: https://github.com/nodejs/node/pull/31884 Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'src/debug_utils.cc')
-rw-r--r--src/debug_utils.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/debug_utils.cc b/src/debug_utils.cc
index 0f25a70e787..a601c5ecf40 100644
--- a/src/debug_utils.cc
+++ b/src/debug_utils.cc
@@ -54,6 +54,9 @@
#endif // _WIN32
namespace node {
+namespace per_process {
+EnabledDebugList enabled_debug_list;
+}
void EnabledDebugList::Parse(Environment* env) {
std::string cats;