/[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 512 by johnpye, Tue Apr 18 06:55:20 2006 UTC revision 513 by johnpye, Wed Apr 19 14:18:05 2006 UTC
# Line 134  typedef enum error_severity_enum{ Line 134  typedef enum error_severity_enum{
134                               fprintf(stderr, ##__VA_ARGS__) + \                               fprintf(stderr, ##__VA_ARGS__) + \
135                               fprintf(stderr, ERR_NORM "\n"))                               fprintf(stderr, ERR_NORM "\n"))
136    
137  /*#elif defined(_MSC_VER) && _MSC_VER >= 1310 /* Microsoft Visual C++ 2003 or newer *  #elif defined(_MSC_VER) && _MSC_VER >= 1400 /* Microsoft Visual C++ 2005 or newer */
138  #  define ERROR_REPORTER_START_HERE(SEV) error_reporter_start(SEV,__FILE__,__LINE__,__FUNCTION__);  #  define ERROR_REPORTER_START_HERE(SEV) error_reporter_start(SEV,__FILE__,__LINE__,__FUNCTION__);
139  #  define ERROR_REPORTER_DEBUG(...)     error_reporter(ASC_PROG_NOTE,__FILE__,__LINE__,__FUNCTION__, __VA_ARGS__)  #  define ERROR_REPORTER_DEBUG(...)     error_reporter(ASC_PROG_NOTE,__FILE__,__LINE__,__FUNCTION__, __VA_ARGS__)
140  #  define ERROR_REPORTER_HERE(SEV,...)  error_reporter(SEV,__FILE__,__LINE__,__FUNCTION__, __VA_ARGS__)  #  define ERROR_REPORTER_HERE(SEV,...)  error_reporter(SEV,__FILE__,__LINE__,__FUNCTION__, __VA_ARGS__)
# Line 142  typedef enum error_severity_enum{ Line 142  typedef enum error_severity_enum{
142  #  define CONSOLE_DEBUG(...)   (fprintf(stderr, ERR_BOLD "%s:%d (%s): ", __FILE__,__LINE__,__FUNCTION__) + \  #  define CONSOLE_DEBUG(...)   (fprintf(stderr, ERR_BOLD "%s:%d (%s): ", __FILE__,__LINE__,__FUNCTION__) + \
143                                  fprintf(stderr, __VA_ARGS__) + \                                  fprintf(stderr, __VA_ARGS__) + \
144                                  fprintf(stderr, ERR_NORM "\n"))                                  fprintf(stderr, ERR_NORM "\n"))
 */  
145  #else /* workaround for compilers without variadic macros: last resort */  #else /* workaround for compilers without variadic macros: last resort */
146  # define NO_VARIADIC_MACROS  # define NO_VARIADIC_MACROS
147  # define ERROR_REPORTER_DEBUG error_reporter_note_no_line  # define ERROR_REPORTER_DEBUG error_reporter_note_no_line

Legend:
Removed from v.512  
changed lines
  Added in v.513

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