Kea 2.7.6
newhook.h
Go to the documentation of this file.
1// Copyright (C) 2011-2024 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 UTIL_UNITTESTS_NEWHOOK_H
8#define UTIL_UNITTESTS_NEWHOOK_H 1
9
46namespace isc {
47namespace util {
48namespace unittests {
52extern bool force_throw_on_new;
53
65extern size_t throw_size_on_new;
66}
67}
68}
69
70#endif // UTIL_UNITTESTS_NEWHOOK_H
size_t throw_size_on_new
The allocation size that triggers an exception in the special operator new.
Definition newhook.cc:42
bool force_throw_on_new
Switch to enable the use of special operator new.
Definition newhook.cc:41
Defines the logger used by the top-level component of kea-lfc.