/*
* Copyright (C) 2004-2008, 2011, 2012 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1997-2001 Internet Software Consortium.
*
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
/*
* $Id$
*/
/*! \file isc/assertions.h
*/
#ifndef ISC_ASSERTIONS_H
#include <isc/platform.h>
/*% isc assertion type */
typedef enum {
const char *);
/* coverity[+kill] */
void isc_assertion_failed(const char *, int, isc_assertiontype_t,
const char *) ISC_PLATFORM_NORETURN_POST;
void
const char *
#if defined(ISC_CHECK_ALL) || defined(__COVERITY__)
#endif
#if defined(ISC_CHECK_NONE) && !defined(__COVERITY__)
#define ISC_CHECK_REQUIRE 0
#define ISC_CHECK_ENSURE 0
#define ISC_CHECK_INSIST 0
#define ISC_CHECK_INVARIANT 0
#endif
#ifndef ISC_CHECK_REQUIRE
#endif
#ifndef ISC_CHECK_ENSURE
#endif
#ifndef ISC_CHECK_INSIST
#endif
#ifndef ISC_CHECK_INVARIANT
#endif
#if ISC_CHECK_REQUIRE != 0
((void) ((cond) || \
#cond), 0)))
#else
#endif /* ISC_CHECK_REQUIRE */
#if ISC_CHECK_ENSURE != 0
((void) ((cond) || \
#cond), 0)))
#else
#endif /* ISC_CHECK_ENSURE */
#if ISC_CHECK_INSIST != 0
((void) ((cond) || \
#cond), 0)))
#else
#endif /* ISC_CHECK_INSIST */
#if ISC_CHECK_INVARIANT != 0
((void) ((cond) || \
#cond), 0)))
#else
#endif /* ISC_CHECK_INVARIANT */
#endif /* ISC_ASSERTIONS_H */