#include "carla/Exception.h"
#include <stdexcept>
#include <cassert>
Go to the source code of this file.
◆ DEBUG_ASSERT
| #define DEBUG_ASSERT |
( |
|
predicate | ) |
DEBUG_ONLY(assert(predicate)); |
◆ DEBUG_ASSERT_EQ
| #define DEBUG_ASSERT_EQ |
( |
|
lhs, |
|
|
|
rhs |
|
) |
| DEBUG_ASSERT((lhs) == (rhs)) |
◆ DEBUG_ASSERT_NE
| #define DEBUG_ASSERT_NE |
( |
|
lhs, |
|
|
|
rhs |
|
) |
| DEBUG_ASSERT((lhs) != (rhs)) |
◆ DEBUG_ERROR
◆ DEBUG_ONLY
| #define DEBUG_ONLY |
( |
|
code | ) |
code |
◆ DEVELOPMENT_ASSERT
◆ DEVELOPMENT_ONLY
| #define DEVELOPMENT_ONLY |
( |
|
code | ) |
code |
◆ LIBCARLA_ASSERT_LEVEL
◆ LIBCARLA_ASSERT_LEVEL_DEBUG
| #define LIBCARLA_ASSERT_LEVEL_DEBUG 30 |
Macro utilities for assertions and debug-only code.
Defines three levels of assertions: debug, development, and release. By default, if NDEBUG is defined the level is set to development, otherwise is set to debug.
The following macros are defined here:
Definition at line 35 of file Debug.h.
◆ LIBCARLA_ASSERT_LEVEL_DEVELOPMENT
| #define LIBCARLA_ASSERT_LEVEL_DEVELOPMENT 20 |
◆ LIBCARLA_ASSERT_LEVEL_RELEASE
| #define LIBCARLA_ASSERT_LEVEL_RELEASE 10 |
◆ LIBCARLA_ASSERT_THROW__
◆ RELEASE_ASSERT