invalid_access_win.h 629 B

12345678910111213141516171819202122
  1. // Copyright 2018 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef BASE_DEBUG_INVALID_ACCESS_WIN_H_
  5. #define BASE_DEBUG_INVALID_ACCESS_WIN_H_
  6. #include "base/base_export.h"
  7. namespace base {
  8. namespace debug {
  9. namespace win {
  10. // Creates a synthetic heap corruption that causes the current process to
  11. // terminate immediately with a fast fail exception.
  12. [[noreturn]] BASE_EXPORT void TerminateWithHeapCorruption();
  13. } // namespace win
  14. } // namespace debug
  15. } // namespace base
  16. #endif // BASE_DEBUG_INVALID_ACCESS_WIN_H_