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:
authorkiyomizumia <melissa@stroly.jp>2018-11-14 03:53:12 +0300
committerRuben Bridgewater <ruben@bridgewater.de>2018-12-24 12:41:15 +0300
commit71bc7e1ce6881b4e6fe50459cc9866d47f96e4a4 (patch)
treef72b9a7fa2d414a7ce4ea6857b44700822af664c /src/inspector
parent65d8179b0d10b4a53564d360c21d0260ec4b1686 (diff)
src: add DCHECK macros
This adds check statements for debugging and refactors the code accordingly. PR-URL: https://github.com/nodejs/node/pull/24359 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'src/inspector')
-rw-r--r--src/inspector/node_string.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/inspector/node_string.h b/src/inspector/node_string.h
index 468aec96b56..4588364ab12 100644
--- a/src/inspector/node_string.h
+++ b/src/inspector/node_string.h
@@ -73,7 +73,8 @@ extern size_t kNotFound;
} // namespace inspector
} // namespace node
-#define DCHECK CHECK
-#define DCHECK_LT CHECK_LT
-
+#ifndef DCHECK
+ #define DCHECK CHECK
+ #define DCHECK_LT CHECK_LT
+#endif // DCHECK
#endif // SRC_INSPECTOR_NODE_STRING_H_