/* * Copyright (C) Internet Systems Consortium, Inc. ("ISC") * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * See the COPYRIGHT file distributed with this work for additional * information regarding copyright ownership. */ /* $Id$ */ #ifndef LWRES_ASSERT_P_H #define LWRES_ASSERT_P_H 1 /*! \file */ #include /* Required for assert() prototype. */ #define REQUIRE(x) assert(x) #define INSIST(x) assert(x) #define UNUSED(x) ((void)(x)) #define POST(x) ((void)(x)) #define SPACE_OK(b, s) (LWRES_BUFFER_AVAILABLECOUNT(b) >= (s)) #define SPACE_REMAINING(b, s) (LWRES_BUFFER_REMAINING(b) >= (s)) #endif /* LWRES_ASSERT_P_H */