From 35425896b07b5124651c249d6ce29285cf71ea3b Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Thu, 5 Feb 2015 10:03:18 -0800 Subject: Merge to XFA: Add namespace and-re-arrange PDFium's local copy of /base. Original revieww URL: https://codereview.chromium.org/900753002 TBR=jam@chromium.org Review URL: https://codereview.chromium.org/880603004 --- third_party/base/logging.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 third_party/base/logging.h (limited to 'third_party/base/logging.h') diff --git a/third_party/base/logging.h b/third_party/base/logging.h new file mode 100644 index 0000000000..d24f93b2a1 --- /dev/null +++ b/third_party/base/logging.h @@ -0,0 +1,18 @@ +// Copyright (c) 2014 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef PDFIUM_THIRD_PARTY_BASE_LOGGING_H_ +#define PDFIUM_THIRD_PARTY_BASE_LOGGING_H_ + +#include + +#define CHECK(condition) \ + if (!(condition)) { \ + abort(); \ + *(reinterpret_cast(NULL) + 42) = 0x42; \ + } + +#define NOTREACHED() abort() + +#endif // PDFIUM_THIRD_PARTY_BASE_LOGGING_H_ -- cgit v1.2.3