All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Macros | Functions
Assert.h File Reference

Header file for run time assertion macros. More...

#include <cassert>
#include <blaze/system/Assertion.h>

Go to the source code of this file.

Namespaces

namespace  blaze
 Namespace of the Blaze C++ math library.
 

Macros

#define BLAZE_INTERNAL_ASSERT(expr, msg)
 Run time assertion macro for internal checks.In case of an invalid run time expression, the program execution is terminated.
The BLAZE_INTERNAL_ASSERT macro can be disabled by setting the BLAZE_USER_ASSERTION flag to zero or by defining NDEBUG during the compilation.
 
#define BLAZE_USER_ASSERT(expr, msg)
 Run time assertion macro for user checks.In case of an invalid run time expression, the program execution is terminated.
The BLAZE_USER_ASSERT macro can be disabled by setting the BLAZE_USER_ASSERT flag to zero or by defining NDEBUG during the compilation.
 

Functions

bool blaze::ASSERT_MESSAGE (const char *)
 Assertion helper function.The ASSERT_MESSAGE function is a small helper function to assist in printing an informative message in case an assert fires. This function builds on the ideas of Matthew Wilson, who directly combines a C-string error message with the run time expression (Imperfect C++, ISBN: 0321228774): More...
 

Detailed Description

Header file for run time assertion macros.

Copyright (C) 2011 Klaus Iglberger - All Rights Reserved

This file is part of the Blaze library. This library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with a special exception for linking and compiling against the Blaze library, the so-called "runtime exception"; see the file COPYING. If not, see http://www.gnu.org/licenses/.