aboutsummaryrefslogtreecommitdiffstats
path: root/src/attributes.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-04-05 16:30:39 -0400
committerDavid Robillard <d@drobilla.net>2023-04-06 07:19:11 -0400
commitf43066a36f98b89b4d853d3168ff0fe2edeb41d7 (patch)
tree05ab27bcf7bbe2b1f7849771c09f1cce5f6a6642 /src/attributes.h
parentc852ef7fbfaf00189f771f0163d796b0b73437ca (diff)
downloadserd-f43066a36f98b89b4d853d3168ff0fe2edeb41d7.tar.gz
serd-f43066a36f98b89b4d853d3168ff0fe2edeb41d7.tar.bz2
serd-f43066a36f98b89b4d853d3168ff0fe2edeb41d7.zip
Improve pretty-printing of lists and inline subjects
Diffstat (limited to 'src/attributes.h')
-rw-r--r--src/attributes.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/attributes.h b/src/attributes.h
index bf4e2658..11c699f3 100644
--- a/src/attributes.h
+++ b/src/attributes.h
@@ -4,6 +4,12 @@
#ifndef SERD_SRC_ATTRIBUTES_H
#define SERD_SRC_ATTRIBUTES_H
+#if defined(__GNUC__)
+# define SERD_LOG_FUNC(fmt, arg1) __attribute__((format(printf, fmt, arg1)))
+#else
+# define SERD_LOG_FUNC(fmt, arg1)
+#endif
+
#ifdef __GNUC__
# define SERD_MALLOC_FUNC __attribute__((malloc))
#else