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/snapshot_creator.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/snapshot_creator.cc')
-rw-r--r-- | libdeno/snapshot_creator.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libdeno/snapshot_creator.cc b/libdeno/snapshot_creator.cc index ceafe0fd7..19098392d 100644 --- a/libdeno/snapshot_creator.cc +++ b/libdeno/snapshot_creator.cc @@ -16,8 +16,8 @@ int main(int argc, char** argv) { deno_set_v8_flags(&argc, argv); - CHECK_NE(js_fn, nullptr); - CHECK_NE(snapshot_out_bin, nullptr); + CHECK_NOT_NULL(js_fn); + CHECK_NOT_NULL(snapshot_out_bin); std::string js_source; CHECK(deno::ReadFileToString(js_fn, &js_source)); |