/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 src/utils.c

  • Committer: Gustav Hartvigsson
  • Date: 2015-04-07 08:35:51 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20150407083551-eigkistus394ds7e
* Made the code compile using CMake.

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
  va_end (args);
55
55
}
56
56
 
57
 
void s_err_print (const char * format, ...) {
 
57
void s_err_print (char * format, ...) {
58
58
  va_list args;
59
59
  va_start (args, format);
60
 
  fprintf (stderr, RED [ERR] (char *) format RESET, args);
 
60
  fprintf (stderr,RED "[ERR] ");
 
61
  fprintf (stderr, format, args);
 
62
  fprintf (stderr, RESET);
61
63
  va_end (args);
62
64
}
63
65
 
64
66
#if DEBUG
65
 
  void s_dbg_print (const char * format, ...) {
 
67
  void s_dbg_print (char * format, ...) {
66
68
    va_list args;
67
69
    va_start (args, format);
68
 
    fprintf (stderr, YELLOW "[DEBUG] " (char *) format RESET, args);
 
70
    fprintf (stderr, YELLOW "[DEBUG] ");
 
71
    fprintf (stderr, format, args);
 
72
    fprintf (stderr, RESET);
69
73
    va_end (args);
70
74
  }
71
75
#else
72
 
  void s_dbg_print (const char * format, ...) {
 
76
  void s_dbg_print (char * format, ...) {
73
77
    /* do nothing */
74
78
  }
75
79
#endif