diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2014-10-11 16:52:07 +0200 |
---|---|---|
committer | Fedor Indutny <fedor@indutny.com> | 2014-10-12 02:09:46 +0400 |
commit | 5fdff3854a4253681fb10aa626c8971e50834c10 (patch) | |
tree | baa8b219fff28467b641d4f4f36a5b090f6cc6b2 /src/req_wrap.h | |
parent | 75a461d0997e0a040c2194c5309c148f179563e9 (diff) | |
download | node-new-5fdff3854a4253681fb10aa626c8971e50834c10.tar.gz |
src: replace assert() with CHECK()
Mechanically replace assert() statements with UNREACHABLE(), CHECK(),
or CHECK_{EQ,NE,LT,GT,LE,GE}() statements.
The exceptions are src/node.h and src/node_object_wrap.h because they
are public headers.
PR-URL: https://github.com/node-forward/node/pull/16
Reviewed-By: Fedor Indutny <fedor@indutny.com>
Diffstat (limited to 'src/req_wrap.h')
-rw-r--r-- | src/req_wrap.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/req_wrap.h b/src/req_wrap.h index df4ed2ced1..ca8ff53195 100644 --- a/src/req_wrap.h +++ b/src/req_wrap.h @@ -48,8 +48,8 @@ class ReqWrap : public AsyncWrap { ~ReqWrap() { QUEUE_REMOVE(&req_wrap_queue_); // Assert that someone has called Dispatched() - assert(req_.data == this); - assert(!persistent().IsEmpty()); + CHECK_EQ(req_.data, this); + CHECK_EQ(false, persistent().IsEmpty()); persistent().Reset(); } |