rad
2.0.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
INTROOT
include
rad
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
23
namespace
rad {
24
33
void
Assert
(
bool
condition,
const
char
* filename,
const
char
* functionname,
int
linenumber);
34
35
}
// namespace rad
36
37
#endif // RAD_ASSERT_HPP
rad::Assert
void Assert(bool condition, const char *filename, const char *functionname, int linenumber)
Definition:
assert.cpp:15
Generated by
1.8.5