source: trunk/MagicSoft/Simulation/Corsika/Mmcs614/warning.h@ 10083

Last change on this file since 10083 was 1444, checked in by blanch, 22 years ago
*** empty log message ***
File size: 1.5 KB
Line 
1#ifndef WARNING_H__LOADED
2
3#define WARNING_H_LOADED 1
4
5#ifdef __cplusplus
6extern "C" {
7#endif
8
9void warn_f_warning ARGLIST((const char *text, const char *origin,
10 int level, int msgno));
11int set_warning ARGLIST((int level, int mode));
12int set_default_warning ARGLIST((int level, int mode));
13void warning_status ARGLIST((int *plevel, int *pmode));
14void set_logging_function ARGLIST(( void (*user_function) ARGLIST((
15 const char *, const char *, int, int)) ));
16void set_default_logging_function ARGLIST(( void (*user_function) ARGLIST((
17 const char *, const char *, int, int)) ));
18int set_log_file ARGLIST((const char *fname));
19void warn_f_output_text ARGLIST((const char *text));
20void flush_output ARGLIST((void));
21void set_output_function ARGLIST(( void (*user_function) ARGLIST((
22 const char *)) ));
23void set_default_output_function ARGLIST(( void (*user_function) ARGLIST((
24 const char *)) ));
25void set_aux_warning_function ARGLIST(( char *(*auxfunc) ARGLIST((
26 void)) ));
27void set_default_aux_warning_function ARGLIST(( char *(*auxfunc) ARGLIST((
28 void)) ));
29char *warn_f_get_message_buffer ARGLIST((void));
30
31#ifndef WARNING_ORIGIN
32# define WARNING_ORIGIN (char *) NULL
33#endif
34
35#define Information(string) warn_f_warning(string,WARNING_ORIGIN,0,0)
36#define Warning(string) warn_f_warning(string,WARNING_ORIGIN,10,0)
37#define Error(string) warn_f_warning(string,WARNING_ORIGIN,20,0)
38
39#define Output(string) warn_f_output_text(string)
40
41#ifdef __cplusplus
42}
43#endif
44
45#endif /* __WARNING_LOADED */
Note: See TracBrowser for help on using the repository browser.