mozalloc_abort.h 786 B

1234567891011121314151617181920212223242526272829
  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
  2. * vim: sw=4 ts=4 et :
  3. */
  4. /* This Source Code Form is subject to the terms of the Mozilla Public
  5. * License, v. 2.0. If a copy of the MPL was not distributed with this
  6. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  7. #ifndef mozilla_mozalloc_abort_h
  8. #define mozilla_mozalloc_abort_h
  9. #include "mozilla/Attributes.h"
  10. #include "mozilla/Types.h"
  11. /**
  12. * Terminate this process in such a way that breakpad is triggered, if
  13. * at all possible.
  14. *
  15. * Note: MOZ_NORETURN seems to break crash stacks on ARM, so we don't
  16. * use that annotation there.
  17. */
  18. MFBT_API
  19. #if !defined(__arm__)
  20. MOZ_NORETURN
  21. #endif
  22. void mozalloc_abort(const char* const msg);
  23. #endif /* ifndef mozilla_mozalloc_abort_h */