diff options
Diffstat (limited to 'src/core/utils.h')
-rw-r--r-- | src/core/utils.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/core/utils.h b/src/core/utils.h new file mode 100644 index 0000000..abb1665 --- /dev/null +++ b/src/core/utils.h @@ -0,0 +1,13 @@ +#ifndef SAND_COMPILER_ATTRIBUTES_H +#define SAND_COMPILER_ATTRIBUTES_H + +// This is a helper module which defines various small helpers. It should only +// be used internally, hence the underscore prefix. + +#ifdef __GNUC__ +#define _SAND_FORMAT_ATTR(archetype, string_index, first_to_check) __attribute__((format(archetype, string_index, first_to_check))) +#else +#define _SAND_FORMAT_ATTR(archetype, string_index, first_to_check) +#endif + +#endif |