PhoenixPresentation
2.0.0
Set of cmake function to automate presentation generation
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
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.
Definition:
phoenix_assert.cpp:16
tmp_project
PhoenixBeamerCreator
tmp_project
PhoenixCore
src
phoenix_assert.h
Generated on Fri Mar 14 2025 15:50:10 for PhoenixPresentation by
1.9.1