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
10
#include <
exceptions/exceptions.h
>
11
12
namespace
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
exceptions.h
isc
Defines the logger used by the top-level component of kea-lfc.
Definition
agent_parser.cc:148
src
lib
exceptions
isc_assert.h
Generated on Fri Dec 20 2024 08:29:25 for Kea by
1.12.0