rad 6.2.0
Loading...
Searching...
No Matches
assert.hpp
Go to the documentation of this file.
1
10#ifndef RAD_ASSERT_HPP
11#define RAD_ASSERT_HPP
12
13#ifdef NDEBUG
14#define RAD_ASSERT(a)
15#define RAD_ASSERTPTR(a)
16#define RAD_ASSERTNEVER()
17#else
18#define RAD_ASSERT(a) rad::Assert(a, __FILE__, __FUNCTION__, __LINE__)
19#define RAD_ASSERTPTR(a) rad::Assert(a != nullptr, __FILE__, __FUNCTION__, __LINE__)
20#define RAD_ASSERTNEVER() rad::Assert(false, __FILE__, __FUNCTION__, __LINE__)
21#endif
22
23namespace rad {
24
33void Assert(bool condition, const char* filename, const char* functionname, int linenumber);
34
35} // namespace rad
36
37#endif // RAD_ASSERT_HPP
Definition actionsApp.cpp:23
void Assert(bool condition, const char *filename, const char *functionname, int linenumber)
Definition assert.cpp:15