aboutsummaryrefslogtreecommitdiffstats
path: root/src/world.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/world.c')
-rw-r--r--src/world.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/world.c b/src/world.c
index 483c46a6..7b0343cc 100644
--- a/src/world.c
+++ b/src/world.c
@@ -70,6 +70,22 @@ serd_world_log(const SerdWorld* world, const SerdMessage* msg)
}
SerdStatus
+serd_world_logf(const SerdWorld* world,
+ SerdStatus st,
+ SerdLogLevel level,
+ const SerdCursor* cursor,
+ const char* fmt,
+ ...)
+{
+ va_list args;
+ va_start(args, fmt);
+ const SerdMessage msg = {st, level, cursor, fmt, &args};
+ serd_world_log(world, &msg);
+ va_end(args);
+ return st;
+}
+
+SerdStatus
serd_world_errorf(const SerdWorld* world, SerdStatus st, const char* fmt, ...)
{
va_list args;