![]() |
PhoenixPresentation
2.0.0
Set of cmake function to automate presentation generation
|
#include <assert.h>
#include <string>
Go to the source code of this file.
Macros | |
#define | __ASSERT_FUNCTION __func__ |
#define | data_stream_assert(isOk) data_stream_assertFull(isOk, #isOk, __FILE__, __LINE__, __ASSERT_FUNCTION) |
Functions | |
void | data_stream_assertFull (bool isOk, const std::string &assertion, const std::string &fileName, size_t line, const std::string &functionName) |
Check if the assertion isOk is true, raise an assertion if isOk is false. More... | |
#define __ASSERT_FUNCTION __func__ |
Definition at line 14 of file data_stream_assert.h.
#define data_stream_assert | ( | isOk | ) | data_stream_assertFull(isOk, #isOk, __FILE__, __LINE__, __ASSERT_FUNCTION) |
Definition at line 17 of file data_stream_assert.h.
void data_stream_assertFull | ( | bool | isOk, |
const std::string & | assertion, | ||
const std::string & | fileName, | ||
size_t | line, | ||
const std::string & | functionName | ||
) |
Check if the assertion isOk is true, raise an assertion if isOk is false.
isOk | : assertion which has to be true |
assertion | : text assertion (convertion of isOk expression into text) |
fileName | : name of the file where the test is called |
line | : line of the file where the test is called |
functionName | : name of the function where the problem happends |
Definition at line 16 of file data_stream_assert.cpp.