diff options
author | Linnnus <[email protected]> | 2025-04-11 23:42:02 +0000 |
---|---|---|
committer | Linnnus <[email protected]> | 2025-04-15 01:08:23 +0000 |
commit | d15dd976b98b4c39a899b3d68047dc752699dca7 (patch) | |
tree | 2291c13817e0359d2f116e76e7b66c9ae8f0c590 /src/core/utils.h | |
parent | 31eacdeefe6099e68dd8596faab8108671e4c6a5 (diff) |
feat(core,cli): Add diagnostic handler to SandConfig
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 |