#include <Assert.h>
|
typedef bool(* | Handler) (const std::string &message) |
|
|
template<typename T0 , typename... TArgs> |
static void | stringify (std::stringstream &ss, T0 &&t0, TArgs &&... rest) |
|
static void | stringify (std::stringstream &UNUSED(ss)) |
|
template<typename... TArgs> |
static void | fire (const char *message, const char *file, const char *func, const int line, TArgs &&... args) |
|
static void | fireParams (const char *message, const char *file, const char *func, const int line, const char *params="") |
|
static void | todo (const char *message, const char *func, const int line) |
|
Definition at line 14 of file Assert.h.
◆ Handler
typedef bool(* Assert::Handler) (const std::string &message) |
◆ fire()
template<typename... TArgs>
static void Assert::fire |
( |
const char * |
message, |
|
|
const char * |
file, |
|
|
const char * |
func, |
|
|
const int |
line, |
|
|
TArgs &&... |
args |
|
) |
| |
|
inlinestatic |
◆ fireParams()
void Assert::fireParams |
( |
const char * |
message, |
|
|
const char * |
file, |
|
|
const char * |
func, |
|
|
const int |
line, |
|
|
const char * |
params = "" |
|
) |
| |
|
static |
◆ stringify() [1/2]
template<typename T0 , typename... TArgs>
static void Assert::stringify |
( |
std::stringstream & |
ss, |
|
|
T0 && |
t0, |
|
|
TArgs &&... |
rest |
|
) |
| |
|
inlinestatic |
◆ stringify() [2/2]
static void Assert::stringify |
( |
std::stringstream & |
UNUSEDss | ) |
|
|
inlinestatic |
◆ todo()
void Assert::todo |
( |
const char * |
message, |
|
|
const char * |
func, |
|
|
const int |
line |
|
) |
| |
|
static |
◆ handler
Custom assert handler.
Assert message is passed as an argument. If it returns false, the assert is ignored and the program continues. Note that assert can be fired from any thread, so it has to be thread-safe.
Definition at line 26 of file Assert.h.
◆ isTest
bool Assert::isTest = false |
|
static |
◆ throwAssertException
bool Assert::throwAssertException = false |
|
static |
If true, assert throws an exception.
Definition at line 18 of file Assert.h.
The documentation for this struct was generated from the following files:
- /home/pavel/projects/astro/sph/src/core/common/Assert.h
- /home/pavel/projects/astro/sph/src/core/common/Assert.cpp