PhoenixSerializer
3.0.0
PhoenixSerializer is a framework to save/load/serialize/deserialize data
Toggle main menu visibility
Loading...
Searching...
No Matches
data_stream_assert.cpp
Go to the documentation of this file.
1
/***************************************
2
Auteur : Pierre Aubert
3
Mail : pierre.aubert@lapp.in2p3.fr
4
Licence : LGPL-3.0-only
5
****************************************/
6
7
#ifdef NDEBUG
8
#undef NDEBUG
9
#endif
10
11
#include "
data_stream_assert.h
"
12
13
#include <cassert>
14
16
22
void
phoenix_serialize_assertFull
(
bool
isOk,
const
std::string & assertion,
const
std::string & fileName,
size_t
line,
const
std::string & functionName) {
23
if
(!isOk) {
24
__assert_fail(assertion.c_str(), fileName.c_str(), line, functionName.c_str());
// GCOVR_EXCL_LINE aborts the program, cannot be covered by a passing test
25
}
26
}
phoenix_serialize_assertFull
void phoenix_serialize_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
data_stream_assert.cpp:22
data_stream_assert.h
src
data_stream_assert.cpp
Generated by
1.18.0