assert.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2022 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9#ifndef SQUID_ASSERT_H
10#define SQUID_ASSERT_H
11
12#if PURIFY
13#define assert(EX) ((void)0)
14#elif defined(NODEBUG)
15#define assert(EX) ((void)0)
16#elif STDC_HEADERS
17#define assert(EX) ((EX)?((void)0):xassert( # EX , __FILE__, __LINE__))
18#else
19#define assert(EX) ((EX)?((void)0):xassert("EX", __FILE__, __LINE__))
20#endif
21
22#ifdef __cplusplus
23extern "C" void
24#else
25extern void
26#endif
27xassert(const char *, const char *, int);
28
29#endif /* SQUID_ASSERT_H */
30
void xassert(const char *, const char *, int)
Definition: assert.cc:11

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors