• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// From chromium's buildtools/third_party/libc++/__assertion_handler
2
3#ifndef _LIBCPP___ASSERTION_HANDLER
4#define _LIBCPP___ASSERTION_HANDLER
5
6#include <__config>
7#include <__verbose_abort>
8
9#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
10#  pragma GCC system_header
11#endif
12
13// TODO(hardening): in production, trap rather than abort.
14#define _LIBCPP_ASSERTION_HANDLER(message) _LIBCPP_VERBOSE_ABORT("%s", message)
15
16#endif // _LIBCPP___ASSERTION_HANDLER
17