/[ascend]/trunk/base/generic/utilities/error.h
ViewVC logotype

Diff of /trunk/base/generic/utilities/error.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 187 by johnpye, Thu Dec 22 13:53:42 2005 UTC revision 188 by johnpye, Mon Jan 16 07:47:02 2006 UTC
# Line 57  Line 57 
57  */  */
58  #if defined(__GNUC__) && !defined(__STRICT_ANSI__)  #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
59  # define ERROR_REPORTER_DEBUG(MSG,args...) error_reporter(ASC_PROG_NOTE,__FILE__,__LINE__,"%s: " MSG, __func__, ##args)  # define ERROR_REPORTER_DEBUG(MSG,args...) error_reporter(ASC_PROG_NOTE,__FILE__,__LINE__,"%s: " MSG, __func__, ##args)
60    # define ERROR_REPORTER_HERE(SEV,MSG,args...) error_reporter(SEV,__FILE__,__LINE__,"%s: " MSG, __func__, ##args)
61  # define CONSOLE_DEBUG(MSG,args...) fprintf(stderr,"%s:%d (%s): " MSG "\n", __FILE__,__LINE__,__func__, ##args)  # define CONSOLE_DEBUG(MSG,args...) fprintf(stderr,"%s:%d (%s): " MSG "\n", __FILE__,__LINE__,__func__, ##args)
62  #elif defined(HAVE_C99)  #elif defined(HAVE_C99)
63  # define ERROR_REPORTER_DEBUG(MSG,...) error_reporter(ASC_PROG_NOTE,__FILE__,__LINE__,"%s: " MSG, __func__, ## __VA_ARGS__)  # define ERROR_REPORTER_DEBUG(MSG,...) error_reporter(ASC_PROG_NOTE,__FILE__,__LINE__,"%s: " MSG, __func__, ## __VA_ARGS__)
64    # define ERROR_REPORTER_HERE(SEV,MSG,...) error_reporter(SEV,__FILE__,__LINE__,"%s: " MSG, __func__, ## __VA_ARGS__)
65  # define CONSOLE_DEBUG(MSG,...) fprintf(stderr,"%s:%d (%s): " MSG "\n", __FILE__,__LINE__,__func__, ## __VA_ARGS__)  # define CONSOLE_DEBUG(MSG,...) fprintf(stderr,"%s:%d (%s): " MSG "\n", __FILE__,__LINE__,__func__, ## __VA_ARGS__)
66  #else  #else
67  # define ERROR_REPORTER_DEBUG error_reporter_note_no_line  # define ERROR_REPORTER_DEBUG error_reporter_note_no_line
68    # define ERROR_REPORTER_HERE error_reporter_here
69  # define CONSOLE_DEBUG console_debug  # define CONSOLE_DEBUG console_debug
70  int error_reporter_note_no_line(const char *fmt,...);  int error_reporter_note_no_line(const char *fmt,...);
71    int error_reporter_here(const error_severity_t sev, const char *fmt,...);
72  int console_debug(const char *fmt,...);  int console_debug(const char *fmt,...);
73  #endif  #endif
74    

Legend:
Removed from v.187  
changed lines
  Added in v.188

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22