diff options
Diffstat (limited to 'src/prelude.h')
-rw-r--r-- | src/prelude.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/prelude.h b/src/prelude.h index 7a646a7..ddeacbd 100644 --- a/src/prelude.h +++ b/src/prelude.h @@ -244,6 +244,15 @@ typedef union { #endif /** + * Annotates functions that potentially modify and return format strings. + */ +#if __has_attribute(format_arg) +# define attr_format_arg(arg) __attribute__((format_arg(arg))) +#else +# define attr_format_arg(args) +#endif + +/** * Annotates allocator-like functions. */ #if __has_attribute(malloc) |