![]() |
LibCarna Version 3.4.0
|
Defines LibCarna::base::LibCarnaException and LibCarna::base::AssertionFailure. More...
#include <memory>
#include <LibCarna/LibCarna.hpp>
#include <string>
#include <sstream>
#include <stdexcept>
#include <csignal>
Go to the source code of this file.
Classes | |
class | LibCarna::base::LibCarnaException |
Base exception class that provides distinct attributes for the type (category) of the exception, a message and an optional details section. More... | |
class | LibCarna::base::AssertionFailure |
Carna exception that indicates a failed assertion. More... | |
class | LibCarna::base::BreakForDebug |
Controls whether the LIBCARNA_BREAK_FOR_DEBUG macro produces a break point or not. More... | |
Namespaces | |
namespace | LibCarna::base |
Contains the core framework components. | |
Macros | |
#define | LIBCARNA_BREAK_FOR_DEBUG |
Causes a break point in debug mode, does nothing in release mode. | |
#define | LIBCARNA_FAIL(description) |
Causes a break point in debug mode and throws an AssertionFailure. | |
#define | LIBCARNA_ASSERT(expression) |
If the given expression is false, a break point is raised in debug mode and an AssertionFailure thrown. | |
#define | LIBCARNA_ASSERT_EX(expression, description) |
If the given expression is false, a break point is raised in debug mode and an AssertionFailure thrown, description being noted within the exception. | |
Defines LibCarna::base::LibCarnaException and LibCarna::base::AssertionFailure.
Definition in file LibCarnaException.hpp.
#define LIBCARNA_ASSERT | ( | expression | ) |
If the given expression is false, a break point is raised in debug mode and an AssertionFailure thrown.
Definition at line 220 of file LibCarnaException.hpp.
#define LIBCARNA_ASSERT_EX | ( | expression, | |
description | |||
) |
If the given expression is false, a break point is raised in debug mode and an AssertionFailure thrown, description being noted within the exception.
Definition at line 243 of file LibCarnaException.hpp.
#define LIBCARNA_BREAK_FOR_DEBUG |
Causes a break point in debug mode, does nothing in release mode.
Definition at line 177 of file LibCarnaException.hpp.
#define LIBCARNA_FAIL | ( | description | ) |
Causes a break point in debug mode and throws an AssertionFailure.
Definition at line 198 of file LibCarnaException.hpp.
Written by Leonid Kostrykin © 2021–2025. Based on Carna (© 2010-2016).
Documentation generated by Doxygen