Kea 2.7.6
isc_assert.h
Go to the documentation of this file.
1// Copyright (C) 2019 Internet Systems Consortium, Inc. ("ISC")
2//
3// This Source Code Form is subject to the terms of the Mozilla Public
4// License, v. 2.0. If a copy of the MPL was not distributed with this
5// file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7#ifndef ISC_ASSERT_H
8#define ISC_ASSERT_H
9
11
12namespace isc {
13
18#define isc_throw_assert(expr) \
19{\
20 if(!(static_cast<bool>(expr))) \
21 {\
22 isc_throw(isc::Unexpected, __FILE__ << ":" << __LINE__ << " (" << #expr << ") failed");\
23 }\
24}
25
26}
27
28#endif // ISC_ASSERT_H
Defines the logger used by the top-level component of kea-lfc.