blob: 027c22b27df9bdf00841421394f782000855a2ec (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#pragma once
namespace NMonitoring {
#define MONLIB_ENSURE_EX(CONDITION, THROW_EXPRESSION) \
do { \
if (Y_UNLIKELY(!(CONDITION))) { \
throw THROW_EXPRESSION; \
} \
} while (false)
} // namespace NSolomon
|