/[ascend]/trunk/models/johnpye/fprops/refstate.c
ViewVC logotype

Diff of /trunk/models/johnpye/fprops/refstate.c

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

revision 2738 by jpye, Mon Dec 9 08:32:08 2013 UTC revision 2739 by jpye, Thu Dec 12 12:33:26 2013 UTC
# Line 11  Line 11 
11    
12  #ifdef REF_DEBUG  #ifdef REF_DEBUG
13  # include "color.h"  # include "color.h"
14  # define MSG(FMT, ...) \  # define MSG FPROPS_MSG
     color_on(stderr,ASC_FG_BRIGHTRED);\  
     fprintf(stderr,"%s:%d: ",__FILE__,__LINE__);\  
     color_on(stderr,ASC_FG_BRIGHTBLUE);\  
     fprintf(stderr,"%s: ",__func__);\  
     color_off(stderr);\  
     fprintf(stderr,FMT "\n",##__VA_ARGS__)  
15  #else  #else
16  # define MSG(ARGS...) ((void)0)  # define MSG(ARGS...) ((void)0)
17  #endif  #endif
18    
19  #ifdef REF_ERRORS  #ifdef REF_ERRORS
20  # include "color.h"  # include "color.h"
21  # define ERRMSG(STR,...) \  # define ERRMSG FPROPS_ERRMSG
     color_on(stderr,ASC_FG_BRIGHTRED);\  
     fprintf(stderr,"ERROR:");\  
     color_off(stderr);\  
     fprintf(stderr," %s:%d:" STR "\n", __func__, __LINE__ ,##__VA_ARGS__)  
22  #else  #else
23  # define ERRMSG(ARGS...) ((void)0)  # define ERRMSG(ARGS...) ((void)0)
24  #endif  #endif

Legend:
Removed from v.2738  
changed lines
  Added in v.2739

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