• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

kleopatra

  • sources
  • kde-4.12
  • kdepim
  • kleopatra
  • utils
Macros
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 ) ")" )
string
const char * string
Definition: verifychecksumscontroller.cpp:511

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 )
kleo_assert_fail_impl
#define kleo_assert_fail_impl(cond, file, line)
Definition: kleo_assert.h:42

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 )
kleo_assert_fail_impl_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

KDE's Doxygen guidelines are available online.

kleopatra

Skip menu "kleopatra"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal