1 /*
2  * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
3  *
4  * This Source Code Form is subject to the terms of the Mozilla Public
5  * License, v. 2.0. If a copy of the MPL was not distributed with this
6  * file, you can obtain one at https://mozilla.org/MPL/2.0/.
7  *
8  * See the COPYRIGHT file distributed with this work for additional
9  * information regarding copyright ownership.
10  */
11 
12 #ifndef LWRES_ASSERT_P_H
13 #define LWRES_ASSERT_P_H 1
14 
15 /*! \file */
16 
17 #include <assert.h>		/* Required for assert() prototype. */
18 
19 #define REQUIRE(x)		assert(x)
20 #define INSIST(x)		assert(x)
21 
22 #define UNUSED(x)		((void)(x))
23 #define POST(x)			((void)(x))
24 
25 #define SPACE_OK(b, s)		(LWRES_BUFFER_AVAILABLECOUNT(b) >= (s))
26 #define SPACE_REMAINING(b, s)	(LWRES_BUFFER_REMAINING(b) >= (s))
27 
28 #endif /* LWRES_ASSERT_P_H */
29