diff options
author | kiyomizumia <melissa@stroly.jp> | 2018-11-14 09:53:12 +0900 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2018-12-24 10:41:15 +0100 |
commit | 71bc7e1ce6881b4e6fe50459cc9866d47f96e4a4 (patch) | |
tree | f72b9a7fa2d414a7ce4ea6857b44700822af664c /src/inspector | |
parent | 65d8179b0d10b4a53564d360c21d0260ec4b1686 (diff) | |
download | node-new-71bc7e1ce6881b4e6fe50459cc9866d47f96e4a4.tar.gz |
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.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/inspector/node_string.h b/src/inspector/node_string.h index 468aec96b5..4588364ab1 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_ |