aboutsummaryrefslogtreecommitdiff
path: root/src/env-inl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/env-inl.h')
-rw-r--r--src/env-inl.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/env-inl.h b/src/env-inl.h
index 0268879f5c..a965bd195e 100644
--- a/src/env-inl.h
+++ b/src/env-inl.h
@@ -473,22 +473,22 @@ inline double Environment::get_default_trigger_async_id() {
}
inline double* Environment::heap_statistics_buffer() const {
- CHECK_NE(heap_statistics_buffer_, nullptr);
+ CHECK_NOT_NULL(heap_statistics_buffer_);
return heap_statistics_buffer_;
}
inline void Environment::set_heap_statistics_buffer(double* pointer) {
- CHECK_EQ(heap_statistics_buffer_, nullptr); // Should be set only once.
+ CHECK_NULL(heap_statistics_buffer_); // Should be set only once.
heap_statistics_buffer_ = pointer;
}
inline double* Environment::heap_space_statistics_buffer() const {
- CHECK_NE(heap_space_statistics_buffer_, nullptr);
+ CHECK_NOT_NULL(heap_space_statistics_buffer_);
return heap_space_statistics_buffer_;
}
inline void Environment::set_heap_space_statistics_buffer(double* pointer) {
- CHECK_EQ(heap_space_statistics_buffer_, nullptr); // Should be set only once.
+ CHECK_NULL(heap_space_statistics_buffer_); // Should be set only once.
heap_space_statistics_buffer_ = pointer;
}
@@ -497,7 +497,7 @@ inline char* Environment::http_parser_buffer() const {
}
inline void Environment::set_http_parser_buffer(char* buffer) {
- CHECK_EQ(http_parser_buffer_, nullptr); // Should be set only once.
+ CHECK_NULL(http_parser_buffer_); // Should be set only once.
http_parser_buffer_ = buffer;
}