Assertion.hpp File Reference

#include "blocxx/BLOCXX_config.h"
#include "blocxx/Exception.hpp"

Go to the source code of this file.

Namespaces

namespace  BLOCXX_NAMESPACE

Classes

class  BLOCXX_NAMESPACE::AssertionException

Defines

#define BLOCXX_ASSERT(CON)
 BLOCXX_ASSERT works similar to the assert() macro, but instead of calling abort(), it throws an AssertionException.
#define BLOCXX_ASSERTMSG(CON, MSG)
 BLOCXX_ASSERTMSG works the same as BLOCXX_ASSERT, but with a second string parameter that will be added to the exception message on failure.


Define Documentation

#define BLOCXX_ASSERT CON   ) 
 

BLOCXX_ASSERT works similar to the assert() macro, but instead of calling abort(), it throws an AssertionException.

Parameters:
CON The condition which will be evaluated.

Definition at line 57 of file Assertion.hpp.

Referenced by BLOCXX_NAMESPACE::BaseStreamBuffer::buffer_from_device(), BLOCXX_NAMESPACE::BaseStreamBuffer::buffer_to_device(), BLOCXX_NAMESPACE::UTF8Utils::charCount(), BLOCXX_NAMESPACE::CmdLineParser::CmdLineParser(), BLOCXX_NAMESPACE::SocketBaseImpl::connect(), BLOCXX_NAMESPACE::IConv_t::convert(), BLOCXX_NAMESPACE::Socket::createShutDownMechanism(), BLOCXX_NAMESPACE::ThreadCounter::decThreadCount(), BLOCXX_NAMESPACE::SocketAddress::getPort(), BLOCXX_NAMESPACE::Thread::join(), BLOCXX_NAMESPACE::Logger::Logger(), BLOCXX_NAMESPACE::String::operator[](), BLOCXX_NAMESPACE::Logger::processLogMessage(), BLOCXX_NAMESPACE::Select::selectRW(), BLOCXX_NAMESPACE::Select::selectRWEpoll(), BLOCXX_NAMESPACE::Select::selectRWPoll(), BLOCXX_NAMESPACE::Select::selectRWSelect(), BLOCXX_NAMESPACE::ServerSocketImpl::ServerSocketImpl(), BLOCXX_NAMESPACE::PosixUnnamedPipe::setBlocking(), BLOCXX_NAMESPACE::Logger::setDefaultComponent(), BLOCXX_NAMESPACE::Socket::shutdownAllSockets(), BLOCXX_NAMESPACE::SocketBaseImpl::SocketBaseImpl(), BLOCXX_NAMESPACE::String::String(), BLOCXX_NAMESPACE::UTF8Utils::StringToUCS2Common(), BLOCXX_NAMESPACE::ThreadBarrier::ThreadBarrier(), BLOCXX_NAMESPACE::ThreadBarrierImpl::ThreadBarrierImpl(), BLOCXX_NAMESPACE::Thread::threadRunner(), BLOCXX_NAMESPACE::ThreadImpl::threadStarter(), BLOCXX_NAMESPACE::SocketAddress::toString(), BLOCXX_NAMESPACE::UTF8Utils::UTF8toUCS4(), and BLOCXX_NAMESPACE::SocketUtils::waitForIO().

#define BLOCXX_ASSERTMSG CON,
MSG   ) 
 

BLOCXX_ASSERTMSG works the same as BLOCXX_ASSERT, but with a second string parameter that will be added to the exception message on failure.

Parameters:
CON The condition which will be evaluated.
MSG The extra message. A C string literal.

Definition at line 71 of file Assertion.hpp.

Referenced by BLOCXX_NAMESPACE::LogAppender::getLogLevel(), BLOCXX_NAMESPACE::initGuardAndKey(), and BLOCXX_NAMESPACE::Logger::setThreadLogger().


Generated on Fri Jun 16 15:39:09 2006 for blocxx by  doxygen 1.4.6