added 3dengfx into the repo, probably not the correct version for this
[summerhack] / src / 3dengfx / src / common / err_msg.h
1 /*
2 Copyright (c) 2004, 2005 John Tsiombikas <nuclear@siggraph.org>
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17 */
18
19 /* Error messages and logging
20  *
21  * Author: John Tsiombikas 2004
22  */
23
24 #ifndef _ERR_MSG_H_
25 #define _ERR_MSG_H_
26
27 /* verbosity setting:
28  * 0 = do not output anything
29  * 1 = output only errors
30  * 2 = output errors and warnings
31  * 3 = output errors, warnings and informative messages
32  */
33
34 #ifdef _MSC_VER
35 #define __func__        __FUNCTION__
36 #endif  /* MSC_VER */
37
38 #ifdef __cplusplus
39 extern "C" {
40 #endif  /* __cplusplus */
41
42 void set_verbosity(int value);
43 void set_log_verbosity(int value);
44
45 void set_log_filename(const char *fname);
46 const char *get_log_filename(void);
47
48 void error(const char *str, ...);
49 void warning(const char *str, ...);
50 void info(const char *str, ...);
51
52 #ifdef __cplusplus
53 }
54 #endif  /* __cplusplus */
55
56 #endif  /* _ERR_MSG_H_ */