exception.h 353 B

12345678910111213
  1. #pragma once
  2. namespace NMonitoring {
  3. #define MONLIB_ENSURE_EX(CONDITION, THROW_EXPRESSION) \
  4. do { \
  5. if (Y_UNLIKELY(!(CONDITION))) { \
  6. throw THROW_EXPRESSION; \
  7. } \
  8. } while (false)
  9. } // namespace NSolomon