1 //===-------- Debug.h ---- Debug utilities ------------------------ C++ -*-===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 //
10 //===----------------------------------------------------------------------===//
11 
12 #ifndef OMPTARGET_DEVICERTL_DEBUG_H
13 #define OMPTARGET_DEVICERTL_DEBUG_H
14 
15 /// Assertion
16 ///
17 /// {
18 extern "C" {
19 void __assert_assume(bool cond, const char *exp, const char *file, int line);
20 }
21 
22 #define ASSERT(e) __assert_assume(e, #e, __FILE__, __LINE__)
23 
24 ///}
25 
26 // TODO: We need to allow actual printf.
27 #define PRINTF(fmt, ...) (void)fmt;
28 #define PRINT(str) PRINTF("%s", str)
29 
30 #endif
31