aboutsummaryrefslogtreecommitdiff
path: root/test/log.c
diff options
context:
space:
mode:
authorFederico Angelilli <code@fedang.net>2024-06-10 11:48:32 +0200
committerFederico Angelilli <code@fedang.net>2024-06-10 11:48:32 +0200
commit6c05a5fd7c977d641f181bf1e2c7340854a6114f (patch)
treeff36e26fc91d09a1698951245c87d9eb17bafb19 /test/log.c
parent236cdea323d34fe731c9bc5dfd30ef832b9fd39a (diff)
Allow custom types for generic formatter
Diffstat (limited to 'test/log.c')
-rw-r--r--test/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/log.c b/test/log.c
index 48244de..53205d8 100644
--- a/test/log.c
+++ b/test/log.c
@@ -14,7 +14,7 @@
#define ANY_LOG_VALUE_PTR(key, value) "\"%s\": \"%p\"", key, value
#define ANY_LOG_VALUE_DOUBLE(key, value) "\"%s\": %lf", key, value
#define ANY_LOG_VALUE_STRING(key, value) "\"%s \": \"%s\"", key, value
-#define ANY_LOG_VALUE_CUSTOM(key, stream, formatter, value) \
+#define ANY_LOG_VALUE_GENERIC(key, stream, formatter, value) \
do { \
fprintf(stream, "\"%s\": ", key); \
formatter(stream, value); \