![]() |
WPILibC++ 2023.4.3
|
Provides Drake's assertion implementation. More...
#include <type_traits>
Go to the source code of this file.
Classes | |
struct | drake::assert::ConditionTraits< Condition > |
Namespaces | |
namespace | drake |
namespace | drake::internal |
namespace | drake::assert |
Macros | |
#define | DRAKE_ASSERT_IS_ARMED |
#define | DRAKE_UNREACHABLE() |
#define | DRAKE_DEMAND(condition) |
#define | DRAKE_ASSERT(condition) DRAKE_DEMAND(condition) |
#define | DRAKE_ASSERT_VOID(expression) |
Functions | |
void | drake::internal::Abort (const char *condition, const char *func, const char *file, int line) |
void | drake::internal::AssertionFailed (const char *condition, const char *func, const char *file, int line) |
Variables | |
constexpr bool | drake::kDrakeAssertIsArmed = true |
constexpr bool | drake::kDrakeAssertIsDisarmed = false |
Provides Drake's assertion implementation.
This is intended to be used both within Drake and by other software. Drake's asserts can be armed and disarmed independently from the system-wide asserts.
#define DRAKE_ASSERT | ( | condition | ) | DRAKE_DEMAND(condition) |
#define DRAKE_ASSERT_IS_ARMED |
#define DRAKE_ASSERT_VOID | ( | expression | ) |
#define DRAKE_DEMAND | ( | condition | ) |
#define DRAKE_UNREACHABLE | ( | ) |