diff options
author | Masashi Hirano <shisama07@gmail.com> | 2019-02-05 01:53:40 +0900 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-02-04 11:53:40 -0500 |
commit | e2d76278bfe8e51c2914bb126a5d98c59be2de3a (patch) | |
tree | 2684e1fcff637152094c46fe9e3906fd38229dc1 /libdeno/api.cc | |
parent | 66cea3906733955c6c1fb223d0bf42eb6bc456b4 (diff) |
Replace macros to check nullptr (#1674)
This replaces CHECK_EQ/CHECK_NE with CHECK_NULL/CHECK_NOT_NULL to check nullptr.
These macros are implemented in V8.
Refs: https://github.com/denoland/deno_third_party/blob/master/v8/src/base/logging.h#L312
Diffstat (limited to 'libdeno/api.cc')
-rw-r--r-- | libdeno/api.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdeno/api.cc b/libdeno/api.cc index 2c72b1265..5e451de8e 100644 --- a/libdeno/api.cc +++ b/libdeno/api.cc @@ -79,7 +79,7 @@ deno::DenoIsolate* unwrap(Deno* d_) { deno_buf deno_get_snapshot(Deno* d_) { auto* d = unwrap(d_); - CHECK_NE(d->snapshot_creator_, nullptr); + CHECK_NOT_NULL(d->snapshot_creator_); d->ClearModules(); d->context_.Reset(); |