summaryrefslogtreecommitdiff
path: root/src/node_i18n.cc
diff options
context:
space:
mode:
authorTobias Nießen <tniessen@tnie.de>2018-05-20 17:44:06 +0200
committerTobias Nießen <tniessen@tnie.de>2018-05-26 12:29:31 +0200
commit39f209649fc290fe92cc3b87edfffa6a854ecb03 (patch)
treee7c7c595355c3ce1dbd59d89070a7427572d256f /src/node_i18n.cc
parent13493e99bfd208bc6e5381a918384049384cc2ed (diff)
downloadandroid-node-v8-39f209649fc290fe92cc3b87edfffa6a854ecb03.tar.gz
android-node-v8-39f209649fc290fe92cc3b87edfffa6a854ecb03.tar.bz2
android-node-v8-39f209649fc290fe92cc3b87edfffa6a854ecb03.zip
src: add CHECK_NULL/CHECK_NOT_NULL macros
This change introduces CHECK_NULL and CHECK_NOT_NULL macros similar to their definition in v8 and replaces instances of CHECK/CHECK_EQ/CHECK_NE with these where it seems appropriate. PR-URL: https://github.com/nodejs/node/pull/20914 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'src/node_i18n.cc')
-rw-r--r--src/node_i18n.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_i18n.cc b/src/node_i18n.cc
index 5dd30a254a..4ace513810 100644
--- a/src/node_i18n.cc
+++ b/src/node_i18n.cc
@@ -127,7 +127,7 @@ struct Converter {
explicit Converter(UConverter* converter,
const char* sub = nullptr) : conv(converter) {
- CHECK_NE(conv, nullptr);
+ CHECK_NOT_NULL(conv);
UErrorCode status = U_ZERO_ERROR;
if (sub != nullptr) {
ucnv_setSubstChars(conv, sub, strlen(sub), &status);