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)
static constexpr SourceLocation Current()
void DCheckImpl(const char *message, const SourceLocation &loc)
void FatalImpl(const char *message, const SourceLocation &loc)
v8::SourceLocation SourceLocation