blob: 6cc36ca7da4e000348c75e84ca7c98c06fa40024 (
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
|