| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Google Inc. All rights reserved. | 3 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 #ifndef WTF_Assertions_h | 27 #ifndef WTF_Assertions_h |
| 28 #define WTF_Assertions_h | 28 #define WTF_Assertions_h |
| 29 | 29 |
| 30 // This file uses some GCC extensions, but it should be compatible with C++ and | 30 // This file uses some GCC extensions, but it should be compatible with C++ and |
| 31 // Objective C++. | 31 // Objective C++. |
| 32 // | 32 // |
| 33 // For non-debug builds, everything is disabled by default, except for the | 33 // For non-debug builds, everything is disabled by default, except for the |
| 34 // RELEASE_ASSERT family of macros. | 34 // RELEASE_ASSERT family of macros. |
| 35 | 35 |
| 36 #include "base/allocator/oom.h" |
| 36 #include "base/gtest_prod_util.h" | 37 #include "base/gtest_prod_util.h" |
| 37 #include "base/logging.h" | 38 #include "base/logging.h" |
| 38 #include "wtf/Compiler.h" | 39 #include "wtf/Compiler.h" |
| 39 #include "wtf/Noncopyable.h" | 40 #include "wtf/Noncopyable.h" |
| 40 #include "wtf/WTFExport.h" | 41 #include "wtf/WTFExport.h" |
| 41 #include "wtf/build_config.h" | 42 #include "wtf/build_config.h" |
| 42 #include <stdarg.h> | 43 #include <stdarg.h> |
| 43 | 44 |
| 44 #if OS(WIN) | 45 #if OS(WIN) |
| 45 #include <windows.h> | 46 #include <windows.h> |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 return static_cast<thisType&>(argument); \ | 292 return static_cast<thisType&>(argument); \ |
| 292 } \ | 293 } \ |
| 293 inline const thisType& to##thisType##OrDie(const argumentType& argument) { \ | 294 inline const thisType& to##thisType##OrDie(const argumentType& argument) { \ |
| 294 CHECK(referencePredicate); \ | 295 CHECK(referencePredicate); \ |
| 295 return static_cast<const thisType&>(argument); \ | 296 return static_cast<const thisType&>(argument); \ |
| 296 } \ | 297 } \ |
| 297 void to##thisType##OrDie(const thisType*); \ | 298 void to##thisType##OrDie(const thisType*); \ |
| 298 void to##thisType##OrDie(const thisType&) | 299 void to##thisType##OrDie(const thisType&) |
| 299 | 300 |
| 300 #endif // WTF_Assertions_h | 301 #endif // WTF_Assertions_h |
| OLD | NEW |