/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.h

  • Committer: Gustav Hartvigsson
  • Date: 2015-03-26 11:06:48 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20150326110648-rnzezpe8q0u4bans
* Added something to config.h.in, still not sure how it cmake works.
* added ANSI colours  to defs.h
* added s_err_print and s_dbg_print
  s_dbg_print only does any work if the DEBUG flag is not unset.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
#include "defs.h"
27
27
#include "stddef.h"
28
 
 
 
28
#include "config.h"
29
29
 
30
30
BEGIN_DECLS
31
31
 
32
32
char * s_string_new (const char * s);
 
33
 
33
34
char * s_string_new_with_len (const char * s, size_t len);
34
35
 
35
36
void s_print (const char * format, ...);
36
37
 
 
38
/**
 
39
 * prints a red message with the prefix [ERR]
 
40
 */
 
41
void s_err_print (const char * format, ...);
 
42
 
 
43
/**
 
44
 * debug_print is a function that only prints if compiled with the debug
 
45
 * flag not unset.
 
46
 */
 
47
void s_dbg_print (const char * format, ...);
37
48
BEGIN_DECLS
38
49
 
39
50
#endif