/[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 912 by johnpye, Wed Jun 28 16:28:57 2006 UTC revision 913 by johnpye, Sat Oct 28 03:55:19 2006 UTC
# Line 103  typedef enum error_severity_enum{ Line 103  typedef enum error_severity_enum{
103  # define ERROR_REPORTER_DEBUG(args...) error_reporter(ASC_PROG_NOTE, __FILE__, __LINE__, __func__, ##args)  # define ERROR_REPORTER_DEBUG(args...) error_reporter(ASC_PROG_NOTE, __FILE__, __LINE__, __func__, ##args)
104  # define ERROR_REPORTER_HERE(SEV,args...) error_reporter(SEV,__FILE__, __LINE__, __func__, ##args)  # define ERROR_REPORTER_HERE(SEV,args...) error_reporter(SEV,__FILE__, __LINE__, __func__, ##args)
105  # define ERROR_REPORTER_NOLINE(SEV,args...) error_reporter(SEV, NULL, 0, NULL, ##args)  # define ERROR_REPORTER_NOLINE(SEV,args...) error_reporter(SEV, NULL, 0, NULL, ##args)
106  # define CONSOLE_DEBUG(args...) (color_on(stderr,"0;34") + \  # define CONSOLE_DEBUG(args...) ((void)(color_on(stderr,"0;34") + \
107          fprintf(stderr, "%s:%d ",__FILE__,__LINE__) + \          fprintf(stderr, "%s:%d ",__FILE__,__LINE__) + \
108          color_on(stderr,"0;31") + \          color_on(stderr,"0;31") + \
109          fprintf(stderr, "(%s)", __func__) + \          fprintf(stderr, "(%s)", __func__) + \
110          color_on(stderr,"0;34") + \          color_on(stderr,"0;34") + \
111          fprintf(stderr, ": ") + \          fprintf(stderr, ": ") + \
112          fprintf(stderr, ##args) + \          fprintf(stderr, ##args) + \
113          fprintf(stderr, "\n") + color_off(stderr))          fprintf(stderr, "\n") + color_off(stderr)))
114    
115  # define ERROR_REPORTER_START_HERE(SEV) error_reporter_start(SEV,__FILE__,__LINE__,__func__);  # define ERROR_REPORTER_START_HERE(SEV) error_reporter_start(SEV,__FILE__,__LINE__,__func__);
116    

Legend:
Removed from v.912  
changed lines
  Added in v.913

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