/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/defs.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:
23
23
#define END_DECLS
24
24
#endif /* __cplusplus */
25
25
 
 
26
BEGIN_DECLS
 
27
 
26
28
#ifndef FALSE
27
29
#define FALSE 0
28
30
#endif
49
51
  S_TYPES_INVALID = INT_MAX
50
52
} S_TYPES;
51
53
 
 
54
 
 
55
/* Colour definitions for console prints */
 
56
#define RESET   "\033[0m"
 
57
#define BLACK   "\033[30m"      /* Black */
 
58
#define RED     "\033[31m"      /* Red */
 
59
#define GREEN   "\033[32m"      /* Green */
 
60
#define YELLOW  "\033[33m"      /* Yellow */
 
61
#define BLUE    "\033[34m"      /* Blue */
 
62
#define MAGENTA "\033[35m"      /* Magenta */
 
63
#define CYAN    "\033[36m"      /* Cyan */
 
64
#define WHITE   "\033[37m"      /* White */
 
65
#define BOLDBLACK   "\033[1m\033[30m"      /* Bold Black */
 
66
#define BOLDRED     "\033[1m\033[31m"      /* Bold Red */
 
67
#define BOLDGREEN   "\033[1m\033[32m"      /* Bold Green */
 
68
#define BOLDYELLOW  "\033[1m\033[33m"      /* Bold Yellow */
 
69
#define BOLDBLUE    "\033[1m\033[34m"      /* Bold Blue */
 
70
#define BOLDMAGENTA "\033[1m\033[35m"      /* Bold Magenta */
 
71
#define BOLDCYAN    "\033[1m\033[36m"      /* Bold Cyan */
 
72
#define BOLDWHITE   "\033[1m\033[37m"      /* Bold White */
 
73
 
 
74
END_DECLS
 
75
 
52
76
#endif