5#ifndef INCLUDE_CPPGC_INTERNAL_LOGGING_H_
6#define INCLUDE_CPPGC_INTERNAL_LOGGING_H_
23#ifdef CPPGC_ENABLE_API_CHECKS
24#define CPPGC_DCHECK_MSG(condition, message) \
26 if (V8_UNLIKELY(!(condition))) { \
27 ::cppgc::internal::DCheckImpl(message); \
31#define CPPGC_DCHECK_MSG(condition, message) \
32 (static_cast<void>(::cppgc::internal::EatParams<decltype( \
33 static_cast<void>(condition), message)>{}))
36#define CPPGC_DCHECK(condition) CPPGC_DCHECK_MSG(condition, #condition)
38#define CPPGC_CHECK_MSG(condition, message) \
40 if (V8_UNLIKELY(!(condition))) { \
41 ::cppgc::internal::FatalImpl(message); \
45#define CPPGC_CHECK(condition) CPPGC_CHECK_MSG(condition, #condition)
Definition: v8-source-location.h:31
static constexpr SourceLocation Current()
Definition: v8-source-location.h:44
void DCheckImpl(const char *, const SourceLocation &=SourceLocation::Current())
void FatalImpl(const char *, const SourceLocation &=SourceLocation::Current())
Definition: allocation.h:38
#define V8_EXPORT
Definition: v8config.h:793