Kea  1.9.9-git
newhook.h
Go to the documentation of this file.
1 // Copyright (C) 2011-2015 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 
46 namespace isc {
47 namespace util {
48 namespace unittests {
52 extern bool force_throw_on_new;
53 
65 extern size_t throw_size_on_new;
66 }
67 }
68 }
69 
70 #endif // UTIL_UNITTESTS_NEWHOOK_H
71 
72 // Local Variables:
73 // mode: c++
74 // End:
Defines the logger used by the top-level component of kea-dhcp-ddns.
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