/[cvs]/eggdrop1.9/src/debug.h
ViewVC logotype

Contents of /eggdrop1.9/src/debug.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.6 - (show annotations) (download) (as text)
Tue Dec 16 21:45:35 2003 UTC (15 years, 10 months ago) by wcc
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +11 -16 lines
File MIME type: text/x-csrc
* src/ cleanups.

1 /* debug.h: assert debugging
2 *
3 * Copyright (C) 2001, 2002, 2003, 2004 Eggheads Development Team
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 *
19 * $Id: debug.h,v 1.5 2003/12/11 00:49:11 wcc Exp $
20 */
21
22 #ifndef _EGG_DEBUG_H
23 #define _EGG_DEBUG_H
24
25 #ifdef DEBUG
26 # undef NDEBUG
27 /*
28 * Some pre-ANSI implementations (e.g. SunOS 4)
29 * need stderr defined if assertion checking is enabled.
30 */
31 # include <stdio.h>
32 # include <assert.h>
33 #else /* !DEBUG */
34 # undef assert
35 # define assert(e)
36 #endif /* DEBUG */
37
38 #endif /* !_EGG_DEBUG_H */

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23