toast/assert.hpp File Reference


Detailed Description

assert.hpp contains several macros for easy asserting

#include <toast/detail/assert.hpp>

Go to the source code of this file.

Namespaces

namespace  toast

Classes

class  toast::assert_exception
 Exception thrown by toast assertions in the case that TOAST_THROW_ASSERTS is used. More...

Defines

#define TOAST_THROW_ASSERTS(statement)   TOAST_THROW_ASSERTS_IMPL(statement)
 transform toast assertions to exceptions.
#define TOAST_ASSERT(condition)   TOAST_ASSERT_IMPL(condition)
 assert that condition is true.
#define TOAST_ASSERT_NOT_NULL(pointer)   TOAST_ASSERT_NOT_NULL_IMPL(pointer)
 assert that pointer is not 0.
#define TOAST_ASSERT_NULL(pointer)   TOAST_ASSERT_NULL_IMPL(pointer)
 assert that pointer is 0.
#define TOAST_ASSERT_MESSAGE(condition, message)   TOAST_ASSERT_MESSAGE_IMPL(condition, message)
 assert that condition is true.
#define TOAST_ASSERT_D(condition)   TOAST_ASSERT(condition)
 assert that condition is true.
#define TOAST_ASSERT_NOT_NULL_D(pointer)   TOAST_ASSERT_NOT_NULL(pointer)
 assert that pointer is not 0.
#define TOAST_ASSERT_NULL_D(pointer)   TOAST_ASSERT_NULL(pointer)
 assert that pointer is 0.
#define TOAST_ASSERT_MESSAGE_D(condition, message)   TOAST_ASSERT_MESSAGE(condition, message)
 assert that condition is true.


SourceForge.net Logo