ifw
0.0.1-dev
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
14
#ifndef RAD_DISABLE_ASSERT
15
#define RAD_ASSERT(a) rad_assert(a, __FILE__, __FUNCTION__, __LINE__)
16
#define RAD_ASSERTPTR(a) rad_assert(a != nullptr, __FILE__, __FUNCTION__, __LINE__)
17
#define RAD_ASSERTNEVER() rad_assert(false, __FILE__, __FUNCTION__, __LINE__)
18
#else
19
#define RAD_ASSERT(a)
20
#define RAD_ASSERTPTR(a)
21
#define RAD_ASSERTNEVER()
22
#endif
23
32
void
rad_assert
(
bool
condition,
const
char
* fileName,
const
char
* functionName,
int
lineNumber);
33
34
#endif
rad_assert
void rad_assert(bool condition, const char *fileName, const char *functionName, int lineNumber)
Definition:
Assert.cpp:13
Generated by
1.8.5