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 84 of file kleo_assert.h.
#define kleo_assert_fail | ( | cond | ) | kleo_assert_fail_impl( cond, __FILE__, __LINE__ ) |
Definition at line 88 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 42 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 45 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 49 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:45
Definition at line 52 of file kleo_assert.h.
#define KLEO_GNUC_PREREQ | ( | maj, | |
min | |||
) | 0 |
Definition at line 68 of file kleo_assert.h.
#define notImplemented | ( | ) | kleo_assert( !"Sorry, not yet implemented" ) |
Definition at line 92 of file kleo_assert.h.
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:56:42 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:56:42 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.