1 //===-- utilities.h ---------------------------------------------*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #ifndef GWP_ASAN_UTILITIES_H_
10 #define GWP_ASAN_UTILITIES_H_
12 #include "gwp_asan/definitions.h"
17 // Terminates in a platform-specific way with `Message`.
18 void die(const char *Message
);
20 // Checks that `Condition` is true, otherwise dies with `Message`.
21 GWP_ASAN_ALWAYS_INLINE
void Check(bool Condition
, const char *Message
) {
26 } // namespace gwp_asan
28 #endif // GWP_ASAN_UTILITIES_H_