PhoenixInkscape  2.0.0
Generate multiple png files with svg inkscape files
phoenix_assert.cpp File Reference
#include "phoenix_assert.h"
+ Include dependency graph for phoenix_assert.cpp:

Go to the source code of this file.

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...
 

Function Documentation

◆ phoenix_assertFull()

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.

Parameters
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.

16  {
17  if(!isOk){__assert_fail(assertion.c_str(), fileName.c_str(), line, functionName.c_str());}
18 }