aboutsummaryrefslogtreecommitdiffstats
path: root/src/world.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-03-31 22:47:54 +0200
committerDavid Robillard <d@drobilla.net>2019-04-13 19:48:23 +0200
commitf19b3c02a317cb74f9410e026b7ec145c8be0bcb (patch)
tree58c5dcbe69cbdd1c87278401353f24d9a3967a7d /src/world.h
parente75d53733b9e016f1fe92d961daa40f74de933e9 (diff)
downloadserd-f19b3c02a317cb74f9410e026b7ec145c8be0bcb.tar.gz
serd-f19b3c02a317cb74f9410e026b7ec145c8be0bcb.tar.bz2
serd-f19b3c02a317cb74f9410e026b7ec145c8be0bcb.zip
WIP: log
Diffstat (limited to 'src/world.h')
-rw-r--r--src/world.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/world.h b/src/world.h
index ef19fb7f..35c23763 100644
--- a/src/world.h
+++ b/src/world.h
@@ -39,8 +39,10 @@ struct SerdWorldImpl {
FILE* serd_world_fopen(SerdWorld* world, const char* path, const char* mode);
-SERD_LOG_FUNC(3, 4)
-SerdStatus
-serd_world_errorf(const SerdWorld* world, SerdStatus st, const char* fmt, ...);
+#define SERD_LOG_ERRORF(world, st, fmt, ...) \
+ serd_world_logf(world, st, SERD_LOG_LEVEL_ERROR, NULL, fmt, __VA_ARGS__);
+
+#define SERD_LOG_ERROR(world, st, msg) \
+ serd_world_logf(world, st, SERD_LOG_LEVEL_ERROR, NULL, msg);
#endif // SERD_WORLD_H