kleopatra
kleo_assert.h File Reference
#include <kleo/exception.h>
#include <boost/preprocessor/stringize.hpp>
#include <assert.h>
Include dependency graph for kleo_assert.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Macros | |
#define | kleo_assert(cond) kleo_assert_impl( cond, __FILE__, __LINE__ ) |
#define | kleo_assert_fail(cond) kleo_assert_fail_impl( cond, __FILE__, __LINE__ ) |
#define | kleo_assert_fail_impl(cond, file, line) |
#define | kleo_assert_fail_impl_func(cond, file, line, func) |
#define | kleo_assert_impl(cond, file, line) |
#define | kleo_assert_impl_func(cond, file, line, func) |
#define | KLEO_GNUC_PREREQ(maj, min) 0 |
#define | notImplemented() kleo_assert( !"Sorry, not yet implemented" ) |
Macro Definition Documentation
#define kleo_assert | ( | cond | ) | kleo_assert_impl( cond, __FILE__, __LINE__ ) |
Definition at line 86 of file kleo_assert.h.
#define kleo_assert_fail | ( | cond | ) | kleo_assert_fail_impl( cond, __FILE__, __LINE__ ) |
Definition at line 90 of file kleo_assert.h.
#define kleo_assert_fail_impl | ( | cond, | |
file, | |||
line | |||
) |
Value:
throw Kleo::Exception( gpg_error( GPG_ERR_INTERNAL ), \
"assertion \"" #cond "\" failed at " file ":" BOOST_PP_STRINGIZE( line ) )
Definition at line 44 of file kleo_assert.h.
#define kleo_assert_fail_impl_func | ( | cond, | |
file, | |||
line, | |||
func | |||
) |
Value:
throw Kleo::Exception( gpg_error( GPG_ERR_INTERNAL ), \
std::string( "assertion \"" #cond "\" failed in " ) + func + " (" file ":" BOOST_PP_STRINGIZE( line ) ")" )
Definition at line 47 of file kleo_assert.h.
#define kleo_assert_impl | ( | cond, | |
file, | |||
line | |||
) |
Value:
if ( cond ) {} \
else kleo_assert_fail_impl( cond, file, line )
Definition at line 51 of file kleo_assert.h.
#define kleo_assert_impl_func | ( | cond, | |
file, | |||
line, | |||
func | |||
) |
Value:
if ( cond ) {} \
else kleo_assert_fail_impl_func( cond, file, line, func )
#define kleo_assert_fail_impl_func(cond, file, line, func)
Definition: kleo_assert.h:47
Definition at line 54 of file kleo_assert.h.
#define KLEO_GNUC_PREREQ | ( | maj, | |
min | |||
) | 0 |
Definition at line 70 of file kleo_assert.h.
#define notImplemented | ( | ) | kleo_assert( !"Sorry, not yet implemented" ) |
Definition at line 94 of file kleo_assert.h.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:12 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:12 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.