1 /* $Id$ */
2 /*
3 ** Copyright (C) 2002-2008 Sourcefire, Inc.
4 ** Copyright (C) 1998-2002 Martin Roesch <roesch@sourcefire.com>
5 **
6 ** This program is free software; you can redistribute it and/or modify
7 ** it under the terms of the GNU General Public License Version 2 as
8 ** published by the Free Software Foundation.  You may not use, modify or
9 ** distribute this program under any other version of the GNU General
10 ** Public License.
11 **
12 ** This program is distributed in the hope that it will be useful,
13 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 ** GNU General Public License for more details.
16 **
17 ** You should have received a copy of the GNU General Public License
18 ** along with this program; if not, write to the Free Software
19 ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 */
21 
22 #ifndef __FATAL_H__
23 #define __FATAL_H__
24 
25 
26 /*
27  * in debugging mode print out the filename and the line number where the
28  * failure have occured
29  */
30 
31 
32 #ifdef DEBUG
33 	#define	FATAL(msg) 	{ printf("%s:%d: ", __FILE__, __LINE__); FatalError( (char *) msg); }
34 #else
35 	#define	FATAL(msg)	FatalError( (char *) msg)
36 #endif
37 
38 
39 
40 #endif	/* __FATAL_H__ */
41