/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-06-04 17:43:47 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20150604174347-guumzaxc4c55qrmr
* Added a bindings friendly way of getting the SType name.

Show diffs side-by-side

added added

removed removed

Lines of Context:
93
93
 *
94
94
 * 
95
95
 */
96
 
static const char * STypeName[] __attribute__((unused)) = {
 
96
static char * STypeName[] __attribute__((unused)) = {
97
97
  "NONE",
98
98
  "INT",
99
99
  "LONG",
116
116
  0x0,
117
117
};
118
118
 
 
119
/**
 
120
 * @brief Get the name of the SType.
 
121
 *
 
122
 * For use in bindings.
 
123
 */
 
124
char * s_type_get_name (SType k);
119
125
 
120
126
/* Colour definitions for console prints */
121
127
#define RESET   "\033[0m"