Mjolnir Core
Core functionality of the Mjolnir API

◆ THROW_EXCEPTION_IF

#define THROW_EXCEPTION_IF (   condition,
  exception_type,
  message 
)
Value:
if (condition) [[unlikely]] /* NOLINT(clang-diagnostic-unknown-attributes) */ \
THROW_EXCEPTION(exception_type, message)

Throw an exception if the passed condition is met.

Parameters
[in]conditionIf the passed condition validates as true, the exception is thrown.
[in]exception_typeThe exception type
[in]messageThe exception message