From d15dd976b98b4c39a899b3d68047dc752699dca7 Mon Sep 17 00:00:00 2001 From: Linnnus Date: Fri, 11 Apr 2025 23:42:02 +0000 Subject: feat(core,cli): Add diagnostic handler to SandConfig --- src/core/utils.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/core/utils.h (limited to 'src/core/utils.h') 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 -- cgit v1.2.3