ifw  0.0.1-dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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
void rad_assert(bool condition, const char *fileName, const char *functionName, int lineNumber)
Definition: Assert.cpp:13