// Copyright 2020 the V8 project authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file.#include "include/cppgc/internal/logging.h"#include "include/cppgc/source-location.h"#include "src/base/logging.h"namespacecppgc{namespaceinternal{voidDCheckImpl(constchar*message,constSourceLocation&loc){V8_Dcheck(loc.FileName(),static_cast<int>(loc.Line()),message);}voidFatalImpl(constchar*message,constSourceLocation&loc){#if DEBUGV8_Fatal(loc.FileName(),static_cast<int>(loc.Line()),"Check failed: %s.",message);#elif !defined(OFFICIAL_BUILD)V8_Fatal("Check failed: %s.",message);#elseV8_Fatal("ignored");#endif}}// namespace internal}// namespace cppgc