Arax -8d09c51940345c86062e8ef2427c705ae66e5926
A Runtime Framework for Decoupling Applications from Heterogeneous Accelerators
Loading...
Searching...
No Matches
arax_assert.h
Go to the documentation of this file.
1#ifndef UTILS_ARAX_ASSERT_HEADER
2#define UTILS_ARAX_ASSERT_HEADER
3#include "compat.h"
4
5ARAX_CPP void _arax_assert(int fail, const char *expr, const char *file, int line);
6
7#define arax_assert(EXPR) \
8 _arax_assert(!(EXPR),#EXPR, __FILE__, __LINE__)
9
10ARAX_CPP void _arax_assert_obj(void *obj, int type);
11
12#define arax_assert_obj(OBJ, TYPE) \
13 ARAX_CPP void _arax_assert_obj(void *obj, int type);
14
15#endif // ifndef UTILS_ARAX_ASSERT_HEADER
ARAX_CPP void _arax_assert_obj(void *obj, int type)
Definition arax_assert.c:21
ARAX_CPP void _arax_assert(int fail, const char *expr, const char *file, int line)
Definition arax_assert.c:12
#define ARAX_CPP
Definition compat.h:24