/simpletypesystem/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/simpletypesystem/trunk

« back to all changes in this revision

Viewing changes to libssts/utils.h

  • Committer: Gustav Hartvigsson
  • Date: 2016-01-31 22:01:01 UTC
  • mto: This revision was merged to the branch mainline in revision 122.
  • Revision ID: gustav.hartvigsson@gmail.com-20160131220101-yhudb5uvjhlq72qx
* added CMake rules for libgc in CMakeLists.txt and a findGC file.
* Better seperation of documentation in defs.h
* added S_COLOR_ prefix to the console printing colour macros.
  And added decumentation to the S_COLOR_*'s.
* Fixed a few spelling errors in defs.h

Show diffs side-by-side

added added

removed removed

Lines of Context:
129
129
 * Print a yellow warning to stderr.
130
130
 */
131
131
#define s_warn_print(p, ...)\
132
 
  fprintf (stderr, BOLDYELLOW "[WARN] " p "\n" RESET, ##__VA_ARGS__)
 
132
  fprintf (stderr, S_COLOR_BOLDYELLOW "[WARN] " p "\n" S_COLOR_RESET, ##__VA_ARGS__)
133
133
 
134
134
/**
135
135
 * prints a red message with the prefix [ERR]
136
136
 */
137
137
#define s_err_print(p, ...)\
138
 
  fprintf (stderr, RED "[ERR] " p RESET "\n", ##__VA_ARGS__)
 
138
  fprintf (stderr, S_COLOR_RED "[ERR] " p S_COLOR_RESET "\n", ##__VA_ARGS__)
139
139
 
140
140
#if DEBUG
141
141
/**
143
143
 * flag not unset.
144
144
 */
145
145
  #define s_dbg_print(M, ...)\
146
 
    fprintf (stdout, YELLOW "[DEBUG][%s:%d] " M RESET "\n", __FILE__, __LINE__, ##__VA_ARGS__)
 
146
    fprintf (stdout, S_COLOR_YELLOW "[DEBUG][%s:%d] " M S_COLOR_RESET "\n", __FILE__, __LINE__, ##__VA_ARGS__)
147
147
#else
148
148
  #define s_dbg_print(M, ...)
149
149
#endif