maliput
maliput_abort.h File Reference
This graph shows which files directly or indirectly include this file:

Namespaces

 maliput
 Code in this file is inspired by: https://github.com/RobotLocomotion/drake/blob/master/common/text_logging.h.
 
 maliput::common
 
 maliput::common::internal
 

Macros

#define MALIPUT_DEMAND(condition)
 Evaluates condition and iff the value is false will trigger an abortion with a message showing at least the condition text, function name, file, and line. More...
 
#define MALIPUT_ABORT_MESSAGE(msg)
 Triggers an abortion with a message showing at least the condition text, function name, file, line and msg. More...
 

Functions

 __attribute__ ((noreturn)) void Abort(const char *condition
 

Variables

const char * func
 
const char const char * file
 
const char const char int line
 
const char const char int const char * extra_details
 

Macro Definition Documentation

◆ MALIPUT_ABORT_MESSAGE

#define MALIPUT_ABORT_MESSAGE (   msg)
Value:
do { \
::maliput::common::internal::Abort("", __func__, __FILE__, __LINE__, #msg); \
} while (0)

Triggers an abortion with a message showing at least the condition text, function name, file, line and msg.

◆ MALIPUT_DEMAND

#define MALIPUT_DEMAND (   condition)
Value:
do { \
if (!(condition)) { \
::maliput::common::internal::Abort(#condition, __func__, __FILE__, __LINE__); \
} \
} while (0)

Evaluates condition and iff the value is false will trigger an abortion with a message showing at least the condition text, function name, file, and line.

maliput::common::internal::Abort
void Abort(const char *condition, const char *func, const char *file, int line)
Definition: maliput_abort_and_throw.cc:95