Halide 19.0.0
Halide compiler and libraries
Loading...
Searching...
No Matches
Errors.h
Go to the documentation of this file.
1#ifndef ERRORS_H
2#define ERRORS_H
3
4#include "Halide.h"
5
6#ifndef user_error
7#define user_error Halide::Internal::ErrorReport(__FILE__, __LINE__, nullptr, Halide::Internal::ErrorReport::User)
8#endif
9
10#ifndef user_warning
11#define user_warning Halide::Internal::ErrorReport(__FILE__, __LINE__, nullptr, Halide::Internal::ErrorReport::User | Halide::Internal::ErrorReport::Warning)
12#endif
13
14#ifndef user_assert
15#define user_assert(c) _halide_internal_assertion(c, Halide::Internal::ErrorReport::User)
16#endif
17
18#ifndef internal_assert
19#define internal_assert(c) _halide_internal_assertion(c, 0)
20#endif
21
22#ifndef internal_error
23#define internal_error Halide::Internal::ErrorReport(__FILE__, __LINE__, nullptr, 0)
24#endif
25
26#endif