PhoenixInkscape  2.0.0
Generate multiple png files with svg inkscape files
phoenix_assert.h
Go to the documentation of this file.
1 /***************************************
2  Auteur : Pierre Aubert
3  Mail : pierre.aubert@lapp.in2p3.fr
4  Licence : CeCILL-C
5 ****************************************/
6 
7 
8 
9 #ifndef __PHOENIX_ASSERT_H__
10 #define __PHOENIX_ASSERT_H__
11 
12 #include <assert.h>
13 #include <string>
14 
15 #ifndef __ASSERT_FUNCTION
16 # define __ASSERT_FUNCTION __func__
17 #endif
18 
19 #define phoenix_assert(isOk) phoenix_assertFull(isOk, #isOk, __FILE__, __LINE__, __ASSERT_FUNCTION)
20 
21 void phoenix_assertFull(bool isOk, const std::string & assertion, const std::string & fileName, size_t line, const std::string & functionName);
22 
23 
24 #endif
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.