"Fossies" - the Fresh Open Source Software Archive 
Member "qdiff-0.9.1/terror.h" (21 Oct 2008, 1795 Bytes) of package /linux/privat/old/qdiff-0.9.1.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
For more information about "terror.h" see the
Fossies "Dox" file reference documentation.
1 /*GPL*START*
2 * terror - error handling and reporting for a tapplication
3 *
4 * Copyright (C) 1998 by Johannes Overmann <overmann@iname.com>
5 * Copyright (C) 2008 by Tong Sun <suntong001@users.sourceforge.net>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
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 along
18 * with this program; if not, write to the Free Software Foundation, Inc.,
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 * *GPL*END*/
21
22 #ifndef _ngw_terror_h_
23 #define _ngw_terror_h_
24
25
26 // history:
27 // 1999:
28 // 00:00 15 Feb started from tobject
29 // 00:56 16 Apr exceptions added
30 // 23:28 13 May TErrnoException added
31 // 17:03 04 Jun exceptions moved to texception.h and tbaseexception.h
32
33
34 // error reporting
35 void userWarning(const char *message, ...) __attribute__ ((format(printf,1,2)));
36 void userError(const char *message, ...) __attribute__ ((noreturn,format(printf,1,2)));
37
38
39 #define fatalError (fatalError_func1(__FILE__,__LINE__,__PRETTY_FUNCTION__),fatalError_func2)
40 #ifdef _in_terror_cc_
41 void fatalError_func1(const char *file, int line, const char *function);
42 #else
43 void fatalError_func1(const char *file, int line, const char *function) __attribute__ ((noreturn));
44 #endif
45 void fatalError_func2(const char *message, ...) __attribute__ ((noreturn,format(printf,1,2)));
46
47 #endif
48