![]() |
PhoenixMock
1.8.7
Tools to split/merge/print mock used in Phoenix
|
#include <assert.h>#include <string>
Include dependency graph for phoenix_assert.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Macros | |
| #define | __ASSERT_FUNCTION __func__ |
| #define | phoenix_assert(isOk) phoenix_assertFull(isOk, #isOk, __FILE__, __LINE__, __ASSERT_FUNCTION) |
Functions | |
| void | phoenix_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 16 of file phoenix_assert.h.
| #define phoenix_assert | ( | isOk | ) | phoenix_assertFull(isOk, #isOk, __FILE__, __LINE__, __ASSERT_FUNCTION) |
Definition at line 19 of file phoenix_assert.h.
| void phoenix_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 phoenix_assert.cpp.